Code: Select all
{ListIt2MyMod category="A2"}Code: Select all
<a href="{ListIt2MyMod category="A2"}">Load Category A2</a>Is there a way to realise this?
Code: Select all
{ListIt2MyMod category="A2"}Code: Select all
<a href="{ListIt2MyMod category="A2"}">Load Category A2</a>
Is there also a way to use an Image instead of "this is your link"?calguy1000 wrote:Use CGSimpleSmarty
{module_action_link module='Listit2MyMod' category='a2' text='This is your link'}
Code: Select all
{module_action_link module='Listit2MyMod' category='a2' image='uploads/image.png'}{module_action_link}
A smarty plugin that can create a link to a module action.
Arguments:
module - The module to create a link to
action (default) - The action to call within the module
text - The text to put in the link
page - Specify the destination page
urlonly - Instead of generating a link, generate just the url
jsfriendly - Used with the urlonly parameter this parameter will ensure that a javascrpt friendly url is output.
confmessage - A confirmation message to display when the link is clicked.
image - An image to use on the link
imageonly - If an image is specified, create a link only consisting of the image. The text will be used for the title attribute
Any other arguments to the smarty plugin will be added to the URL generated.
Code: Select all
{module_action_link module='Listit2MyMod' category='a2' imageonly='uploads/image.png' text='This is your link'}So use at least the 'image' parameter too.imageonly - If an image is specified
Code: Select all
{module_action_link module='Listit2MyMod' category='a2' image='uploads/image.png' imageonly=1 text='This is your link'}Code: Select all
<a href="{module_action_link module='Listit2MyMod' category='a2' urlonly=1 }"><img src="{uploads_url}/image.png" alt="" /></a>This code did it for me ... Thanksvelden wrote:ps. I prefer using {uploads_url} in stead of 'uploads'Code: Select all
<a href="{module_action_link module='Listit2MyMod' category='a2' urlonly=1 }"><img src="{uploads_url}/image.png" alt="" /></a>
Made my day - thanx.calguy1000 wrote:Use CGSimpleSmarty
{module_action_link module='Listit2MyMod' category='a2' text='This is your link'}