MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: germanizing the [more]-tag?



******    message to minivend-users from mikeh@minivend.com     ******

Quoting Frank Miedreich (miedreich@acm.org):
> >Quoting Thomas Walter <tw@mail.itreff.de>:
> >
> >Just a short question again...
> >
> >Is there a way to get the "previous 1 2 3 next" - output of [more]
> >translated to german?
> >Or is using images the only way to do this ?
> >
> 
> Only way I know is to edit the minivend source file:
> lib/Vend/Interpolate.pm
> 
> In the subroutine tag_more_list (line 2811 in 3.11)
> 
> replace the assignment for $prev_anchor and $next_anchor with German
> equivalents. In the code for the assignment of $prev_items you will also
> find the line: $list .= '</A>'; You may want to add a space after the </A>.
> Looks better in the output.

Actually there is a new mechanism in 3.12, documented with:

	If you wish to set custom text for the "Previous" and "Next" usually
	used, then you can define the next_img, prev_img, and page_img with
	C<[next-anchor][/next-anchor]>, C<[prev-anchor][/prev-anchor]> and
	C<[page-anchor][/page-anchor]>. The string $PAGE$ will be replaced with
	the page number in the latter. The same example:


		[more-list 0 0 0]
		[next-anchor] Forward [/next-anchor]
		[prev-anchor] Back [/prev-anchor]
		[page-anchor] Page $PAGE$ [/page-anchor]
		[more]
		[/more-list]

	will display U<Forward Page 1 Page 2 Back> for 2 pages.

	As shown, you must pass a 0 for the arguments of each to
	tell MiniVend to look for the assignments.


-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
It's a little-known fact            131 Willow Lane, Floor 2  | ||  _ \
that the Y1K problem caused         Oxford, OH  45056         | || |_) |
the Dark Ages. -- unknown           <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| 
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: