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?

<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?

 
goutnet replied on at Permalink Reply
You can not "Link" to a block, you can link to a page. Now that page will need to embed the block you want.

Now passing information from one block to another can be done using GET/POST/SESSION as you wish.
Cahueya replied on at Permalink Reply
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 :)
goutnet replied on at Permalink Reply
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 :

<a name="#myblock"/>


Put your block just after that content, and then use that anchor in the link.