a href link to a block
Permalink
Hi,
I'm looking at writing a reservations block for a client and need to know how to make a link to the block. Ordinarily I'd do something like this in HTML, but how would I do this in C5?
I've tried different functions but can't seem to get anything that makes sense to give the correct URL. Could: site.com/index.php/reservelink/$fileID be possible?
I'm looking at writing a reservations block for a client and need to know how to make a link to the block. Ordinarily I'd do something like this in HTML, but how would I do this in C5?
<a href="reservelink.php?id=$fileID">Reserve Me</a>
I've tried different functions but can't seem to get anything that makes sense to give the correct URL. Could: site.com/index.php/reservelink/$fileID be possible?
You could maybe create a custom template with a embedded anchor link to the block....
Here is how this is done basically:
http://www.concrete5.org/documentation/how-tos/designers/change-how...
I haven't done this before, but I can imagine it will work :)
Here is how this is done basically:
http://www.concrete5.org/documentation/how-tos/designers/change-how...
I haven't done this before, but I can imagine it will work :)
If you want the link to point directly at the block, you should add an html block before, and insert an anchor in the httml content :
Put your block just after that content, and then use that anchor in the link.
<a name="#myblock"/>
Put your block just after that content, and then use that anchor in the link.
Now passing information from one block to another can be done using GET/POST/SESSION as you wish.