What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Question New Tab With User Gallery In Resource Tabs

Discussion in 'XenGallery' started by unol, Nov 26, 2014.

  1. unol

    unol Authorized Member Authorized

    how add this tab from profile page how_this_move.png

    don`t know how add correct code in resource manager tabs :( please help... this_tabs.png

    for great new photos tab in resource tabs :) move_here.png

    Thanks!
     
  2. sonnb

    sonnb Administrator Staff Member

    You want to add an album as a tab while viewing a resource?
     
  3. unol

    unol Authorized Member Authorized

    just view author gallery in new resource tab


    My temporary solution without tab:

    <xen:if is="{$resource.user_id}">
    <a class="callToAction" href="{xen:link gallery/authors, $resource}" target="_blank"><span>TEXT BUTTON (AUTHOR GALLERY)</span></a>
    <xen:else />
    <span>{$resource.username}</span>
    </xen:if>

    This code in "resource_view":


    <xen:include template="resource_view_header" />


    <xen:if is="{$resource.user_id}">
    <a class="callToAction" href="{xen:link gallery/authors, $resource}" target="_blank"><span>Открыть портфолио автора</span></a>
    <xen:else />
    <span>{$resource.username}</span>
    </xen:if>

    <hr />

    <xen:include template="resource_view_tabs" />


    screenshot:


    tab.png
     
    Last edited: Nov 26, 2014
  4. sonnb

    sonnb Administrator Staff Member

    Add a new tab into: resource_view_tabs, it will work.
     
  5. unol

    unol Authorized Member Authorized

    link button works anywhere... and any new tabs... but i dont`know code for tab to see author albums in new resource tab without link in gallery...
    for example i may see it now only with <iframe> :) :( iframe.png


    this code in resource_view_tabs work just as link...

    <xen:if is="{$resource.user_id}"><li id="photos" data-loadUrl="{xen:link gallery/authors/photos, $resource}" class="profileContent {xen:if "{$selectedTab} == 'photos'", active}">
    <a href="{xen:link gallery/authors/photos, $resource}">{xen: phrase view}</a>
    </li></xen:if>



    -------------------------------------

    ok... so hard with tabs for me...
    need just correct code for view albums instead my "iframe gallery"
    ...
     
    Last edited: Dec 1, 2014
  6. sonnb

    sonnb Administrator Staff Member

    iframe is an ugly solution. You cannot do that without coding knowledge. With customized code, you can do it like the tab "Discussion" in RM.
     
  7. unol

    unol Authorized Member Authorized

    new temporary solution - move all code from "profile_view" into "resource_view"...
    Untitled123.png it work better...

    maybe in future i can do it into tab :)

    Thanks!
     
    sonnb likes this.

Share This Page