Community > Discussions
103 views
3 replies

Live Content - Link Outside of Gallery

Does anyone know if there is a way to link picture objects to a destination outside the gallery, such as to a DNN page? I tried all the themes with no luck. 

I like the module's responsiveness and permission control, and would like to use it as a sort of menu rather than a gallery.

Thank you.

John Wolf John Wolf
Published 10/11/2020 23:33
Add Comment
Ashish Pachori

Does anyone know if there is a way to link picture objects to a destination outside the gallery, such as to a DNN page? I tried all the themes with no luck. 

You can achieve it by changing following template:

\DesktopModules\LiveContent\Themes\YourSelectedTheme\Template\Tokens\Elements\Item.htm

Note: We always recommend that create your own theme then do change in templates. You should not change Live Content's original themes.

To know how to create your own theme see: https://www.mandeeps.com/support/knowledgebase/live-content-manage-settings-create-new-theme

I like the module's responsiveness and permission control, and would like to use it as a sort of menu rather than a gallery.

It is not possible at this time. Please add this to our Community Ideas

 

 

 

 

replied 10/12/2020 05:49
John Wolf

Thank you. I'll give the custom theme a try. 

John 

replied 10/12/2020 20:14
Daniel Bigelow

If your objective is to link to a DNN page when a thumbnail image is clicked, for example in the Portfolio-4 theme, then I suggest you

  1. copy and modify
    \DesktopModules\LiveContent\Themes\Portfolio 4\Template\Tokens\Elements\Item.htm
    to create
  2. \DesktopModules\LiveContent\Themes\Portfolio4XYZ\Template\Tokens\Elements\Item.htm
    where

Before:

. . .
            <span class="title">
                <span class="inner">[Element:title]</span>
                <span class="type">[Element:categorieswithoutlink]</span>
        </span>
        </a>
        <div class="caption">
           [Element:caption]
        </div>  
        <div class="control">
            [Element:action_hide][Element:action_approve][Element:action_edit][Element:action_delete]
    </div>
    </div>
</li>

 

After:
. . .
            <span class="title">
                <span class="inner">[Element:title]</span>
                <span class="type">[Element:caption]</span>
            </span>
        </a>
        <div class="control">
            [Element:action_hide][Element:action_approve][Element:action_edit][Element:action_delete]
    </div>
    </div>
</li>

Then, when you create a new element, the title you provide becomes the name of a new page located under an ID number generated by the Live Content module. You will see the URL in the Integration section. The number consists of a generated 3-digit base number and a counter value (starting from 1) that increments with each new element. You will need to manually create the page, but after you do that, a click on the thumbnail will open that page. Bingo! That's what you wanted - right?  Note: the increment value cannot be used again if you delete the element. So, if myPage is under e.g. lc/5271 and you delete the corresponding element, the Add New Element command will map the thumbnail to lc/5272.

Don't forget to modify the CSS file in your custom theme as per Mandeeps instructions.

Kind regards,
Daniel Bigelow

replied 10/31/2020 13:57

Last Activity 10/31/2020 13:57