Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #809009

    I know how to place a link which is a page, eg. EventPage which has a list of portfolio items, e.g. http:/localhost/myweb/eventpage How to specify the link to open Event1 from the link automatically? (and navigate as well to EventPage)

    #809999

    Hey kwanumzen,

    You can check that from the plugin settings, you will do see how to make the redirections.

    Best regards,
    Basilis

    #810124

    Hi Basilis,

    hmmmm.. I do not understand your response. I know how to make the link to eventpage which works. And I know how to make a link to Event2. But when the user normally navigates on my page than eventpage is displayed with Event1, Event2 and Event3. If the user clicks on Event2 the page is AJAX sideloaded and displayed above.

    So, what I wanna have is to navigate to ‘eventpage’ and automatically load Event2. How to achieve this? To my understanding this is not a normal redirection…

    love
    ronald

    #810496

    Hi Ronald,

    You might want to use a redirect. Here is an overview of plugins for that;

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #810516

    hm – i didn’t realy understand your request. You want a link (in menu ?) directly to a specific event (portfolio) ? and not to the event list ( or masonry etc)
    so why don’t you insert that specific link
    if you have activated on Menu “Screen Options” on top right side (it is a slide out screen)
    you can make visible all boxes even the portfolio-items (don’t know if events are listed too) if not you can do it via custom-links.

    click to enlarge:

    #810521

    or do you mean you have used on a page the ajax-portfolio advanced layout element – and you want that it opens on first view a specific post (portfolio/event) ?

    if it is in this way – you can look here : https://kriesi.at/support/topic/ajax-portfolio-on-main-menu-link/

    you have to know the ID of your event! The rest is said on the post link above

    #810530

    Like Guenni007 mentioned in his last q:

    I have loaded on the Overview page my O_Page1 and have a text included in this specific Ajax loaded page. I want a link which should navigate me to the EventPage and load via Ajax Page2 automatically…

    I don’t know how to describe it better:-/

    #810532

    I need to test the last link the next few days. Looks promising…

    #810551

    The snippet in Enfold Dokumentation works – but the place where it is inserted must sometimes be corrected (999)

    add_action( 'wp_footer', 'enfold_customization_portfolio_linking', 999 );
    function enfold_customization_portfolio_linking() {
    ?>
    <script type = "text/javascript">
    jQuery(document).ready(function(){
    var p = getUrlParameter('custom_ajax');
    //jQuery('.grid-links-ajax').avia_portfolio_preview();
    jQuery('.post-entry-'+p+' .grid-image').click();
    });
    function getUrlParameter(sParam)
    {
        var sPageURL = window.location.search.substring(1);
        var sURLVariables = sPageURL.split('&');
        for (var i = 0; i < sURLVariables.length; i++) 
        {
            var sParameterName = sURLVariables[i].split('=');
            if (sParameterName[0] == sParam) 
            {
                return sParameterName[1];
            }
        }
    }      
    </script>
    <?php
    }

    the link in your menu has now to be :

    http://your.site.url/portfolio-page/?custom_ajax=2694

    the url now has to be changed to your custom ajax id and url
    determin the custom ajax id got to portfolio list view on dashboard – move your mouse over the portfolio you want to open – on browserwindow (firefox left bottom corner – you see now the ID in the link.

    see here on test page: https://webers-testseite.de/ click on menu link “Portfolio-Page”

    #810565

    edit : read my last entry

    • This reply was modified 7 years, 6 months ago by Guenni007.
    #810586

    edit : read my last entry

    • This reply was modified 7 years, 6 months ago by Guenni007.
    #810940

    hm seems to be something with that test-site of mine . On a fresh install the origingal Snippet from Dokumentation works!

    https://webers-testseite.de/mino/portfolio/portfolio-ajax/?custom_ajax=46

    Solved:
    The snippet works well – there was a conflict with one of my self made snippets (date-picker thread)
    The snippet from portfolio-ajax deeplink has to be inserted before my own snippet – than it works well.

    #810968

    And by the way if you like to have opend the first portfolio item on opening the ajax portfolio page it is for functions.php child theme:

    add_action('wp_footer', 'ava_auto_click');
    function ava_auto_click(){
    ?>
    <script>
    (function($){	
    	$(window).load(function() {
    		$('.grid-links-ajax a:first').trigger('click');
    	});
    })(jQuery);
    </script>
    <?php
    }
    • This reply was modified 7 years, 6 months ago by Guenni007.
    #811142

    Hi,

    thx, the above snipplet really fixed my problem.

    issue resolved :-)

    thx
    ronald

    #811329

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Thanks @guenni007 for helping out :-)

    Best regards,
    Rikard

    #811349

    Hi,

    From my side you can close this topic – although I have a new issue – which might be related to the current one – at least a workaround could be possible with the solution provided here. But nevertheless lets see what the results will be for the new one. Up till than plz close this one.

    thx
    ronald

    #812275

    Hi,

    Please do create a new topic, so we can have a full control of the things please.

    Thank you for your understanding

    Best regards,
    Basilis

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Portfolio link to another portfolio and open automatically a specific item’ is closed to new replies.