Different Weblogs, Same Title
Posted: 22 July 2004 11:54 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  134
Joined  04-14-2004

If you create an entry with a name that is already used within the weblog, EE will append a # to the URL title which makes this number unique.  E.G. If there is already a story called “Election Day”, the second entry with the same name will receive a URL title of “election_day1”

This check isn’t however performed across weblogs.  So if an entry in weblog 2 tries to use the same title as an entry in weblog 1, nothing special will happen, and permalinks to both stories will now crap out.

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 23 July 2004 11:06 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

How do the permalinks “crap out”?

EE requires unique URL Titles within a weblog, but different weblogs can contain the same URL Titles.  They must be weblog-unique but not system-unique.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 23 July 2004 11:33 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  134
Joined  04-14-2004

Chris, I created two entries, same title, different weblogs.

One should be viewable at: http://actforvictory.org/act.php/home/static/test_for_chris

The other at:
http://actforvictory.org/act.php/home/content/test_for_chris

As you can see, the first doesn’t work.  for both entires, EE is trying to load both articles, and because of the limit=“1”, it’s only pulling the first entry.

A better example is at: http://actforvictory.org/act.php/home/demo/test_for_chris

There I removed the limit=“1” and you can see that EE is loading both entries.

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 23 July 2004 03:09 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

I don’t see how you can claim that only displaying one article when you specify limit=“1” is incorrect.  It’s doing precisely what you tell it to do.

As for the first link, it really depends on what EE tag (and parameters) you’re using.  My hunch would be that you have a weblog specified on there and that none of the “test_for_chris” entries are in that weblog.


Overall, though, I just don’t understand what you think isn’t working.  So far as I can tell from your examples without seeing the underlying code, EE is doing just what it should.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 23 July 2004 05:12 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  134
Joined  04-14-2004

Of course EE should only display one article with you set it to limit=“1”.  The problem is the EE behavior which matches your statement ...

“EE requires unique URL Titles within a weblog, but different weblogs can contain the same URL Titles. They must be weblog-unique but not system-unique.”

The above examples, especially the demo, show that on a permalinked page it is neccessary to have the URL be system-unique.  When the URL title is only weblog unique, EE has no way of knowing which article it is supposed to display so it tries to show both.

Does that make sense?

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 24 July 2004 08:38 AM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

> When the URL title is only weblog unique, EE has no way of knowing which article it is supposed to display so it tries to show both.

Ah.  You see that as incorrect behavior while I see that as EE doing precisely what it should.

If you have a page using {exp:weblog:entries} and you don’t specify a particular weblog to display in that tag, then EE should display all matching entries.  If you go in and change it to

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

then EE will only display the entry that matches from the weblog you specified.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 24 July 2004 09:48 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  134
Joined  04-14-2004

Chris, I completely agree with you in the way EE is behaving.  When two articles have the same permalink, it only makes sense that EE tries and load them both.

What I consider a bug, is that EE doesn’t alert you that a URL is already taken, unless it happens to be in the same weblog.

One of the great features of EE is that a template can be used for multiple weblogs.  This great feature is weakened when you aren’t warned about a permalink being taken.

I can’t possibly expect each of the 60+ content creators we have to be aware of every single article going into the system.

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 24 July 2004 03:49 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Well, I personally don’t consider it a defect.  EE is doing what it should: URL Titles must be weblog-unique but not system-unique.

Now, that certainly doesn’t mean that you can’t go put in a Feature Request to have URL Titles be system-unique.  Or, ideally, have it be a preference that the admin can determine for their own site.

 Signature 

Chris Curtis
chriscurtis.org

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: 24
Total Topics: 82016 Total Anonymous Users: 20
Total Replies: 440814 Total Guests: 190
Total Posts: 522830    
Members ( View Memberlist )