article link will point to page with a=page:1 instead of a=16?

Asked by dorkass

I've got a weird one... Is it possible in the current template system for me to have a page of maybe thumbnails or summaries with dynamically generated links to the single article, but it puts it in the page:1 or page:2 format rather than the a=1 or a=2 format? What I'm trying to do is have it so that it takes you to the main article with pagination and comments as an option. Currently {article_href} appears to be the only template option, so it of course takes you straight to the article with the comments displayed, and thus the only navigation I can have is 'back'... I can look into adding some kindof feature such as this to the code if there's no way to do it currently... I added an {img_src} (which is what the manual reports) to just produce a server path to be included in your own image tags for thumbnail generation or what have you.. If you want that code posted lemme know. Thanks.

ps. is there an updated manual other than what's at http://phpns.alecwh.com/manual.php ? It looks like some template includes have changed that arent reflected there...

Question information

Language:
English Edit question
Status:
Solved
For:
phpns Edit question
Assignee:
No assignee Edit question
Solved by:
dorkass
Solved:
Last query:
Last reply:
Revision history for this message
alecwh (alecwh) said :
#1

Your question is hard to understand, but I think I know what you are
asking. It is not possible; the only URLs that can be dynamically
replaced are {image_src} and {article_href}. If you want to try adding
another template option, go right ahead! This project is under the GPL,
letting you do things like this without asking, and sharing without
asking.

I would like to see the modification, but do not post the raw code here,
I would prefer you use a code hosting service like pastebin.

Revision history for this message
dorkass (dprkass) said :
#2

Yeah, sorry, it's kindof hard to explain what I was goin for.. You can get an idea of what I ended up with at http://www.dorkass.net/photoshop

The index is the gallery, what I ended up having to do is creating two templates and two categories, I just submit the first for the enlarged pic, and the second for the thumbnail... in the thumbnail article submission I just make the subtitle the static page number for the enlarged pic, and have the template fill in the rest of the link. It's a little ghetto but it works...

 I've looked through the code quite a bit and decided I'll probably forego trying to add the feature to link to the article page cuz the code doesn't assign id's to the article in any such way that I can have them dynamically linked to the article on a page currently, I'd have to add a ton. Ah well, this script is mighty powerful with a little imagination though...

Revision history for this message
dorkass (dprkass) said :
#3

i just wanted to clarify that when i said "cuz the code doesn't assign id's to the article in any such way that I can have them dynamically linked to the article on a page" I meant on a page with the single article and pagination such that a=page:1 etc.