• Anonymous User 20702716

    (@anonymized-20702716)


    We use a Vue.js plugin with a router that generates client-side URLs. They show detail pages of items. Is it somehow possible to make these detail pages favoriteable? They all got the same post-id of the site, that contains the plugin, but their URL contains a unique ID.

    I wonder why I can add a custom post-id with the shortcode for the heart-button. I was hoping maybe I can fill this somehow dynamically to produce Favorites for different detail pages, but there is nothing on the favorite list, if I enter some custom ID.

Viewing 1 replies (of 1 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello @lenaccp

    Thank you for your question.

    However, I am sorry, I’ve never used with “Vue.js plugin” with this shortcode, so I don’t know about compatibility.

    [ccc_my_favorite_select_button]

    The initial value of the post ID attribute of this shortcode is dynamic.

    Also, if you want to specify statically as shown below, enter post D.

    ?[ccc_my_favorite_select_button post_id="The Post ID"]

    Therefore, if null or empty, the principle is dynamic.

    However, I am not aware of the compatibility of this shortcode when used within other plugins or in the block editors of other plugins.

    If you write the shortcode directly on the PHP template side, it might work.

    <?php if (shortcode_exists('ccc_my_favorite_select_button')) {
    
    echo do_shortcode('[ccc_my_favorite_select_button]');
    
    } ?>

    I hope this is helpful.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Deal with client-site generated URLs’ is closed to new replies.