-
AuthorPosts
-
June 16, 2017 at 5:14 pm #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)June 19, 2017 at 9:55 pm #809999Hey kwanumzen,
You can check that from the plugin settings, you will do see how to make the redirections.
Best regards,
BasilisJune 20, 2017 at 5:13 am #810124Hi 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 toEvent2
. But when the user normally navigates on my page thaneventpage
is displayed with Event1, Event2 and Event3. If the user clicks onEvent2
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
ronaldJune 20, 2017 at 4:59 pm #810496Hi 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,
VictoriaJune 20, 2017 at 5:11 pm #810516hm – 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.June 20, 2017 at 5:15 pm #810521or 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
June 20, 2017 at 5:31 pm #810530Like 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:-/
June 20, 2017 at 5:34 pm #810532I need to test the last link the next few days. Looks promising…
June 20, 2017 at 6:12 pm #810551The 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”
June 20, 2017 at 6:30 pm #810565edit : read my last entry
- This reply was modified 7 years, 5 months ago by Guenni007.
June 20, 2017 at 6:50 pm #810586edit : read my last entry
- This reply was modified 7 years, 5 months ago by Guenni007.
June 21, 2017 at 12:46 pm #810940hm 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.June 21, 2017 at 2:31 pm #810968And 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, 5 months ago by Guenni007.
June 21, 2017 at 8:19 pm #811142Hi,
thx, the above snipplet really fixed my problem.
issue resolved :-)
thx
ronaldJune 22, 2017 at 6:54 am #811329Hi,
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,
RikardJune 22, 2017 at 7:29 am #811349Hi,
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
ronaldJune 23, 2017 at 7:37 pm #812275Hi,
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 -
AuthorPosts
- The topic ‘Portfolio link to another portfolio and open automatically a specific item’ is closed to new replies.