Block with linked area?

Permalink
Hi, I'm trying to make a block that has 2 fields, one for some text that sits within a larger anchored area (as defined by CSS), and one for a URL that the anchored area will go to.

So essentially, the block panel would look like this:

Text: [___________]
URL: [__________]


Is there a way to do this? I can't find a similar block in the default blocks, to compare it to.

stephmars
 
Mnkras replied on at Permalink Reply
Mnkras
look up remo's staff block on codeblog.ch
stephmars replied on at Permalink Reply
stephmars
Will do, thanks!
stephmars replied on at Permalink Reply
stephmars
I couldn't find anything on his blog about creating specific blocks, searched the Concrete5 section.

I think all I need to know is what to put in the anchor tag. I have this:

<a href="<?php echo  View::url('/', $controller->getFileID()) ?>" class="collection-act-container style1">
        <p class="collection-title">
        <?php echo $years?>
        </p>
        <p class="collection-act">View Collection</p>
    </a>


Any suggestions? Guidance? Thank you!
jordanlev replied on at Permalink Reply
jordanlev
Check out the docs here:http://www.concrete5.org/documentation/how-tos/understanding-and-bu...

The link to the basic block template should show you how it's done -- just add another field or two and change the names to match what you want.

Good luck!