Sorry to be bugging you with questions. I've created my portfolio website, have a look at it here: http://agoberg.tv/
Everything is working great now, and its no problem for me to update the portfolio section and the blog. The thing is, on the main page all the links are going to a separate page (with a video), but I would also like to be able to put photographs on the first page, and I want to have those photographs to open in a lightbox window.
My current code is as follows:
Would it somehow be possible for the <a href="<cms:show k_page_link />"> to change to just link to a image if that image exists? Another problem is that the lightbox window need a rel="" code in the anchor tag as well. I know I could probably use the if/else functions, but I don't really understand how that works. Hope you understand my question..
Another thing, I'm planning to buy a licence for Couch, when I do would I have to do a new installation of Couch or just change a licence file?
Thanks for your help...
Everything is working great now, and its no problem for me to update the portfolio section and the blog. The thing is, on the main page all the links are going to a separate page (with a video), but I would also like to be able to put photographs on the first page, and I want to have those photographs to open in a lightbox window.
My current code is as follows:
- Code: Select all
<cms:pages masterpage='index.php' limit='18' >
<div class="imgteaser">
<a href="<cms:show k_page_link />"><img src="<cms:show portfolio_image />" width="150" height="150" alt="<cms:show k_page_title />" />
<span class="desc"><h2><cms:show k_page_title /></h2><br />
<cms:show portfolio_type /></span></a>
</div><!-- imgteaser end -->
</cms:pages >
Would it somehow be possible for the <a href="<cms:show k_page_link />"> to change to just link to a image if that image exists? Another problem is that the lightbox window need a rel="" code in the anchor tag as well. I know I could probably use the if/else functions, but I don't really understand how that works. Hope you understand my question..
Another thing, I'm planning to buy a licence for Couch, when I do would I have to do a new installation of Couch or just change a licence file?
Thanks for your help...