Easy setup of {permalink} path
Posted: 05 October 2004 05:15 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  80
Joined  04-12-2002

That was a bad title.

What I’m doing, is I have two sections on my main page of my site. The first is the last 5 entries of my journal, which is the bulk of my site. The second is a mix of the last 5 entries from all the rest of the sections.

What I want to do, is setup a {permalink} on the title to get to that entry. However, I need to find a way to do a {permalink=group/template} that is built on the fly based on the section the entry is from.

Is there a way to pull the weblog shortname (Since all the tmplate groups match the weblog shortname) and then throw that in the group/template portion of permalink?

Profile
 
 
Posted: 05 October 2004 09:32 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

If you’re using EE 1.1, then you can do this based off of the “Comment Page URL” path you have under Admin > Weblog Management.

Take a look at the weblog entries tag variables and you’ll want to look at:

- {comment_entry_id_auto_path}
- {comment_auto_path}
- {comment_url_title_auto_path}

The first or last will create links to the entries, while the middle one is simply the exact path you have set in the preference.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 21 October 2004 07:56 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  93
Joined  08-26-2003

Brian… you related to Jimbo?

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: 64938 Total Logged-in Users: 64
Total Topics: 81908 Total Anonymous Users: 45
Total Replies: 440306 Total Guests: 285
Total Posts: 522214    
Members ( View Memberlist )