Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1130048

    At the Avia Composer editing screen, is there a way to get the Page Content element to show the page title, rather than the page number (e.g., “Page Title” vs. “17”) so that the editors do not have to click in and out of elements to determine which page content is being displayed. It would be more descriptive and therefore more user friendly and efficient to use. Thanks for any help. I searched around for this in the forums, but couldn’t find a thread.

    • This topic was modified 5 years, 2 months ago by milkrow.
    #1130114

    Hey milkrow,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #1130130

    Basilis,
    I wasn’t implying that the work to custom code this functionality would be covered by support, as you implied. But if there was a setting I could change to implement this, then knowing that would be helpful. I suspect a number of users would find it important to know. Perhaps if one could change the call to display the page title (e.g., get_the_title() ) rather than the page ID? Just a thought. If anyone else sees this and has anything to add, feel free. :)

    #1130410

    Hi milkrow,

    Please have a look at this article

    Best regards,
    Victoria

    #1130456

    Hi Victoria,
    That is helpful, thank you. I know how to find the ID, but those editing the content will see this:

    https://ibb.co/C5Nk31K

    And clearly it shows what content is there (“Brunch”). I think what my original post may have implied is that the Page Content element box should show more detailed content (as a clue to the person making edits)…that isn’t what I meant. I now see why Basilis responded accordingly.

    Upon further thought, I think I’m looking for a way for the user to be able to click “Brunch (page, 409 )” which would be linked back to that page (in editing mode, not view). That way if a user climbs into the “Menu” page which is a stack of Page Content elements, he/she would be able to quickly get back to the page that needs the edits…rather than having to click back out to Pages, and find the page.

    I hope that makes sense. Again, it sounds like this is falls into the “feature request” category (the form for which may still be “frozen”?). But at least this topic is here for other users and I hope this is a worthwhile idea for a worthwhile and helpful page element.

    I should have made that more clear. I apologize for the confusion.

    #1131175

    Hi,

    Thank you for the update.

    This is possible. We can convert the page title to a link, but there’s one problem. Clicking that link will just open the element’s popup template or editor. The user will have to open the browser’s context menu and click the “Open link in a new tab” in order to actually access the link.

    If you want to proceed, edit the config-templatebuilder > aviashortcodes > postcontent.php file and look for this code around line 166:

    $update_template =	'<span class="av-postcontent-headline">{{link}}</span>';
    

    Replace it with:

    $post_link = get_edit_post_link($entry->ID);
    $update_template =	'<span class="av-postcontent-headline"><a href="'.$post_link.'">{{link}}</a></span>';
    

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.