Field for link?

Permalink
I'm still fumbling my way around PHP, so forgive me...

I'm trying to make a block that has a field for a link (an absolute link, not necessarily relative, though either way is fine). The link should be wrapped in this:

<a href="[C5 wizardry here]" style="linkstyle">&nbsp;</a>


...which would be in the view.php.

Or maybe it wouldn't even be able to sit in an anchor tag. Can you see I have no idea how to go about building this? :(

As for the rest (add, edit, xml, etc.) I have no idea what they would look like. Has anyone built a block like this? It should be pretty simple but PHP is still pretty foreign to me. Thanks for any help.

stephmars
 
stephmars replied on at Permalink Reply
stephmars
Nevermind, I got it! Duh.

<a href="<?php echo $anchor?>" class="linkstyle">link this somewhere</a>


For some reason I couldn't believe it would be this simple.