• Resolved cuckoofairweb

    (@cuckoofairweb)


    Hi David,

    I hope this is a quick question. On the above gallery page I have just discovered I have used a wrong name for a category ‘Forest School of Dance’. I have quickly changed the category name but I am stumbling on changing the image title for the 100 odd images in that category. I construct the Title from 3 meta data fields ending up with as an example “New Forest School of Dance at the Maypole in 1990”.

    All I want to do is update the Title by removing the ‘New ‘ from the front of the titles. I tried to replace New Forest with just Forest using a custom rule but to no avail.

    Am I barking up the wrong tree or missing an obvious trick!

    Ta

    Paul

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for an interesting question.

    You can use the Bulk Edit area of the Media/Assistant admin submenu to make changes like this.

    First, navigate to the Media/Assistant page and use the category dropdown or the Terms Search popup or the Search Media box with the Terms box checked to filter the display on the category name.

    Second, check the box at the left of the submenu table header to select all the items or check the boxes for the items you want to update. Make sure that all of the items you check have the “New ” string at the front of the Title. You might want to experiment with one or a few items to make sure you get what you want.

    Third, pull down the Bulk Actions list, select Edit and then click Apply.

    Fourth, in the Title text box (right-hand column) enter this content template:

    template:[+post_title,substr(4)+]
    

    The template will remove the first 4 characters from the current Title value. Click “Update” to apply the change(s).

    You could also try this template, which is a bit more selective:

    template:[+post_title,str_replace('New ','')+]
    

    One of those should get you the result you seek. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions.

    Thread Starter cuckoofairweb

    (@cuckoofairweb)

    Hi David,

    Many thanks your first suggestion worked a treat.

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quick Question’ is closed to new replies.