Show main weblog title within reverse relating tag
Posted: 17 May 2008 03:49 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

Is it possible to show the containing weblog title within the reverse related weblog tag? In my mind it should work, at least by using an assigned variable…

{exp:weblog:entries  weblog="the_weblog"}

{assign_variable
:main_title='{title}'}
            
{reverse_related_entries weblog
="the_relating_weblog"}

Main Title
= {main_title}
                
{
/reverse_related_entries}

{
/exp:weblog:entries}

This is returning the title of the relating weblog, not the containing weblog. Help?

Edit: And if this seems silly, what I’m trying to do is display a select list of items relating to an entry, but the title of the main entry needs to be in the list with each item as well.

 Signature 

jeremy douglas media design | twitter

Profile
 
 
Posted: 18 May 2008 08:19 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  25625
Joined  05-20-2002

You’re likely to run into trouble trying to assign a variable dynamically - note the docs.

In this context, the word “variable” is used simply to mean the use of an ExpressionEngine style variable in the template to substitute for some other text. It is not a “variable” in the sense of being an accessible and modifiable value held in memory. It is a simple text replacement that occurs the moment the Assign Variable tag is encountered by the template parser.

Could likely do it with php parsed on output.  Or- Mr. Wilson’s Reeposition plugin might also work in this situation.

Make sense?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 18 May 2008 11:06 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

Yes, I think the php route will work for this. That’s kind of what crossed my mind this morning as well.  Thanks Robin.

 Signature 

jeremy douglas media design | twitter

Profile
 
 
Posted: 19 May 2008 02:59 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29218
Joined  05-15-2004

Glad you’re all set.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120486 Total Logged-in Users: 55
Total Topics: 126559 Total Anonymous Users: 20
Total Replies: 665414 Total Guests: 279
Total Posts: 791973    
Members ( View Memberlist )