Page 1 of 1

Browse next/prev tags

Posted: Sat 22. Apr 2006, 03:51
by mattslk
Hello,
I am looking for the answer to this question:
I am looking for a way to use the {BROWSE:NEXT and {BROWSE:PREV tags to browse in just one level only. At this moment, the {BROWSE:NEXT just continues browsing, even if it is the last article in a category.

[...]

Of course, I know that it is possible to use the 0 and 1 indicators in the tag to stop the possibility of further browsing but I need these browsing tags to work from a template.

I know this has been talked about before, in this article: http://www.phpwcms.de/forum/viewtopic.p ... rowse+next

But the answer in that article is not sufficient for my needs. I need the tag to be dynamic, i.e. no hardcoding of article numbers needed. The reason is, that the website I am building will have content that will vary a lot overtime: categories will have between 1 and n articles, varying all the time.

Is it possible to have this behaviour of the {BROWSE tags?
the original thread is located here: http://www.phpwcms.de/forum/viewtopic.p ... ticle+work
but had no response

Does anyone have any ideas about this?

Posted: Sat 22. Apr 2006, 03:58
by DeXXus
Only similar functionality, so far, is maybe this:

http://www.phpwcms.de/forum/viewtopic.php?t=7503

See bottom of demo pages here:

http://www.kmedv.at/wcms/index.php?teaser_ex_samples

Posted: Sat 22. Apr 2006, 08:15
by mattslk
hmm.. it is similar but not quite what I am looking for. thanks for the tag link though it did help me figure out another problem.

Posted: Sat 22. Apr 2006, 09:36
by flip-flop
Hi mattslk,

my solution for this problem:
The last CP of every serial site is showing like this:

{BROWSE:PREV:<< Previous Site <<:0} . . . space . . . {BROWSE:NEXT:>> Next Site >>:1} First Site
{BROWSE:PREV:<< Previous Site <<:1} . . . space . . . {BROWSE:NEXT:>> Next Site >>:1} Sites between
{BROWSE:PREV:<< Previous Site <<:1} . . . space . . . {BROWSE:NEXT:>> Next Site >>:0} Last Site

E.G. http://www.art-varij.de/de_bilderbueche ... 1_02.phtml

Gruß Knut

Posted: Sat 22. Apr 2006, 09:57
by update
Hi flip-flop,

I've just checked your "under construction" site - very beautiful and the pictures: great.
Nothing more to say for now...

Greetings
claus

Posted: Sat 22. Apr 2006, 10:29
by flip-flop
Hi claus, :D

thanks for your compliment.
I hope the site will be online at the next four weeks. (more pictures, translation into EN)

Have you read the Sec.Alert?

Gruß Knut

Posted: Sat 22. Apr 2006, 15:20
by update
Yes :!:

Already deleted / renamed all mentioned files/folders for testing (before drafting them down the gully...
Nevertheless thank you for your hint. This story seems to be more cumbersome than it looked like at first glance? But if OG really does some security auditing, this would calm down the whole thing again.

Greetings
claus

Posted: Mon 24. Apr 2006, 06:14
by mattslk
{BROWSE:PREV:<< Previous Site <<:0} . . . space . . . {BROWSE:NEXT:>> Next Site >>:1} First Site
{BROWSE:PREV:<< Previous Site <<:1} . . . space . . . {BROWSE:NEXT:>> Next Site >>:1} Sites between
{BROWSE:PREV:<< Previous Site <<:1} . . . space . . . {BROWSE:NEXT:>> Next Site >>:0} Last Site
Thank you for your answer flip-flop it makes a lot of sense and your site is coming along nicely, but now suppose I have an article list that updates constantly with a list of links leading to the most recent articles. I could create three different templates but then how possibly could I link to them in a correct manner without using hard coding? I wouldn't mind looping through the articles that much with the browse tags, but I notice that the browse replacement tags cross over into other sub categories and that these tags go throughout the whole main category Any ideas on how to fix them so they only look in the sub category they are in? (So that I dont have to make every structure of mine into a main structure either). Or any other ideas?

Posted: Tue 25. Apr 2006, 00:39
by flip-flop
Hi mattslk.

an other solution. have al look:
Please activate the first picture. Next please at the upper right activate the arow left. The new picture is the last from all. It´s rotating navigation.
http://www.ne-paneeldecken.de/de_photoalbum_3.phtml
- Two template (One for the picture list and one for the pictures)
- every picture has his own category.
- The first and last category at this list are dummy entries.
- The first dummy has a rediret to: -> the last picture contentpart (index.php?de_3000hs_315-300-15_alnala_2)
- The last dummy has a rediret to: -> the fitst picture contentpart
(index.php?de_1515zf_200-185-15_howela_1)

It works fine, but don´t move/change the place of the first and last picture category. (Otherwise you must change the link at the first/last dummy category to the new first/last picture category).

Code: Select all

+- picture
   +- dummy begin
   +- first picture
   +- ............
   +- last picture
   +- dummy end
+- next category
+- ..........
But the better way is a new RT for solving this.

Gruß Knut