Creating a new weblog and duplicating existing templates.
Posted: 17 August 2004 04:11 PM   [ Ignore ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32911
Joined  05-14-2004

I just discovered this and it made me want to cry.

I used the assign_variable to assign a current_blog variable to my templates.  When I created new weblogs and duplicated those templates it had gone and replaced all the occurances of weblog=”{current_blog}” with weblog=blog_shortname.

Which was unexpected and made this use of the assign variable really frustrating.  I therefore hereby request a feature to not update the weblog= fields when duplicating templates for a new weblog. 

Please. =)

 Signature 
Profile
MSG
 
 
Posted: 17 August 2004 08:18 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  2541
Joined  12-21-2001

I think that may be a bug.  It’s not supposed to replace variables, only the pure weblog definitions.

In other words, if you have this:

weblog=“weblog1”

And you create a new weblog called “weblog2”, then it rightly should replace instances of “weblog1” with “weblog2” so that your templates will be correct.

Unless I’m misunderstanging your point, I think what you are describing is that the variable was replaced:

weblog=”{current_blog}”

If so, then it’s being too aggressive, so we’ll have to fix it.

 Signature 
Profile
MSG
 
 
Posted: 17 August 2004 08:25 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32911
Joined  05-14-2004

yes, {current_blog} was replaced with “weblog2” (from your example) - that was what I didn’t expect. wink

 Signature 
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 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65030 Total Logged-in Users: 21
Total Topics: 82119 Total Anonymous Users: 19
Total Replies: 441323 Total Guests: 180
Total Posts: 523442    
Members ( View Memberlist )
Newest Members:  cfvicdreamNOIRgmonCooperWrightReedsmeenoiYang.JianuoioitsukiNathan Hammondalexcig