Tuesday, 16 March 2010 18:30

Öppna artikel i lightbox

Written by 
Rate this item
(0 votes)

Här får du ett snabbt och enkelt knep för att få dina länkar i Joomla att öppnas i snygg och imponerande lightbox.

För att öppna en artikel eller länk i lightbox måste du lägga till följande kodsnutt i mallfilens index.php, exempelvis DIN_JOOMLAROOT/Templates/JA_Purity/index.php:

JHTML::_('behavior.modal');

 

På alla länkar som du sedan vill skall öppnas i Lightbox, skriver du om enligt följande:

<a href="http://www.dinadress.se" class="managelink modal" rel="{handler: 'iframe', size: {x: 600, y: 500}}" ></a>

Read 1564 times Last modified on Tuesday, 16 March 2010 18:37
Daniel Eliasson

A programmer and webdesigner with over 15 years of experience in different programming languages with a toolbox consisting of: Objective C, JAVA, C++, PHP and many more techniques.

Leave a comment

Please note that support questions will not be answered in these comments. Use the support forum instead.

Stilero på Twitter

I feel like I'm too obsessed with cleaning and refactoring code.But when I look at the code a couple of months later I know it was worth it.

by Daniel Eliasson

Follow Stilero Webdesign


Google+