I create metablogs, these create problems
Posted: 01 April 2005 08:58 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  962
Joined  12-20-2002

Hope I can explain this quick & easy. I’m building a site with sections and subsections. Each section is a template group. Each subsection is a blog. Fair enough. But I want some metadata on each subsection beyond the “weblog” field of the weblog:entries tag. With me still? So I created two metablogs called indexes and subindexes. Each entry here corresponds to a section or subsection of the site, with its Title being the Weblog Name and its URL_Title being the Short Name.

The problem is that this stops the index pages of regular weblogs from working. They work again if I remove the url_title of the matching entry in the subindex weblog.

I’m wondering whether this a simple fix or some intrinsic aspect of the system that I’m not seeing.

 Signature 

Who ain’t a slave? - Ishmael

Profile
 
 
Posted: 01 April 2005 10:17 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

This is how URLs work.  If you have a URL like site.com/index.php/weblog/url-title it will look for an entry with url-title, and then a template with url-title in the weblog template group.

So, if you have both you’ll have a conflict….

 Signature 
Profile
MSG
 
 
Posted: 01 April 2005 11:30 AM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

I don’t understand what it is you’re trying to do with this “metablog” data.  Perhaps if you explained your goal then we could offer suggestions.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 02 April 2005 06:56 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  962
Joined  12-20-2002

The goal is to be able to have homepages for each section that have their own introductions before showing the weblog entries for the various weblogs belonging to that section. I’m surprised it hasn’t come up often actually because I’ve had to do it on more than one site when using as a CMS. Yes, this can be done with global variables yes, but I want the site editor to not need access to the Control Panel’s Templates section at all.

Anyway, I found an obvious solution to the problem: the metablogs are never accessed directly, so their url_titles are irrelevant, and I created for them a field called “weblog name”, and this is what is used to compare with the weblogs’ short_names.

So problem solved.

 Signature 

Who ain’t a slave? - Ishmael

Profile
 
 
   
 
 
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: 64978 Total Logged-in Users: 22
Total Topics: 82016 Total Anonymous Users: 19
Total Replies: 440814 Total Guests: 190
Total Posts: 522830    
Members ( View Memberlist )