Image Template: Link on caption

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Image Template: Link on caption

Post by macangelo »

Hi all

I'm using the content part "Images <div>" and apply a link on the image by writing in the caption field something like:
my image|my image|target.html

Is there a way to setup the inc_cntpart/images/mytemplate.tmpl so that the link is automatically also on the caption?

Thanks a lot
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Image Template: Link on caption

Post by Oliver Georgi »

Code: Select all

[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{URL}</a>[/URL]
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Image Template: Link on caption

Post by macangelo »

Besten Dank!

Wie kann ich die beiden Zeilen schachteln? Damit die Caption, die im Backend eingetragen wurde, auch durchgespielt wird?

Code: Select all

[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{URL}</a>[/URL]
[CAPTION]<p class="img-caption">{CAPTION}</p>[/CAPTION]
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
kleiner_Punkt
Posts: 114
Joined: Thu 21. Feb 2008, 10:47

Re: Image Template: Link on caption

Post by kleiner_Punkt »

;)

Code: Select all

[CAPTION]<p class="img-caption">[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{CAPTION}</a>[/URL]</p>[/CAPTION]
Ich kann aus jeder Ordnung Chaos schaffen!
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Image Template: Link on caption

Post by macangelo »

cool!
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
top
Posts: 535
Joined: Fri 11. Aug 2006, 15:03
Location: Eutin

Re: Image Template: Link on caption

Post by top »

Wenn ich das richtig überblicke, bleibt so der Absatz mit der Caption leer, wenn kein Link gesetzt wird. Mit folgender kleinen Ergänzung dürfte es auch ohne Link funktionieren: (ungetestet)

Code: Select all

[CAPTION]<p class="img-caption">[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>[/URL]{CAPTION}[URL]</a>[/URL]</p>[/CAPTION]
Post Reply