Welcome to TalkGraphics.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Named Objects WDP 17

    A while ago I started using a customisable audio player that relies on various parts of the player being named (filename="pause") etc. Very happy with the results.

    Updated to v17 and added a track to one of the sites. Player disappeared. Not very happy with the results.

    I don't mind fiddling, but does anyone have a direction into which I should fiddle? If it helps, the player is placed in the Head section of a place holder with only the player id in the body section. I've attached one of the pages that was working prior to the update.

    >> Player Problem.web <<

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    Bit more info. I sent the .web file to a friend with v16.3. She didn't alter anything, just published and everything displays correctly.

    Conclusion: it has to be to do with the automatic naming of images that was introduced in v17.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Info Re: Named Objects WDP 17

    Chris, if it helps, v17.0 publishes filename="Chris" as Chris_.jpg or Chris_.png, according to Xara notes.

    Acorn


    Code:
    <img class="xr_ap" src="index_htm_files/Chris_.jpg" alt="" title="" style="left:283px;top:108px;width:256px;height:256px;"/>
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    Quote Originally Posted by Acorn View Post
    Chris, if it helps, v17.0 publishes filename="Chris" as Chris_.jpg or Chris_.png, according to Xara notes.

    Acorn


    Code:
    <img class="xr_ap" src="index_htm_files/Chris_.jpg" alt="" title="" style="left:283px;top:108px;width:256px;height:256px;"/>
    You are correct once again.

    Now to find out if it's quicker/easier to use Find & Replace or to use v16 for the sites with the player. My inclination is to go with Find & Replace as I want to keep up with new releases.

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Default Re: Named Objects WDP 17

    Quote Originally Posted by Chris M View Post
    You are correct once again.
    Now to find out if it's quicker/easier to use Find & Replace or to use v16 for the sites with the player. My inclination is to go with Find & Replace as I want to keep up with new releases.
    For new & old ones, include the new Image Filename as well.
    The new v17 naming override the old approach but in v16 and under the Image Filename is not recognised.

    If that does not work, then some JS using document.querySelectorAll, split & join might.

    Let me know.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    It's passionfruit liqueur time, but tomorrow I'll see if I can find the code that says 'look for Chris.png' and change it to 'look for Chris_ .png' and leave Xara name as filename="Chris".

    The theory will sound even better after another liqueur.

  7. #7
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    My curiosity beat my desire to sip.

    I left the objects (images) named as filename="whatever" then delved into the Head section of the placeholder to find the path reference to whatever.png and changed it to whatever_.png. Worked like a charm.

    There are only 4 names per player that needed editing, so simple enough for me not to whinge.

    Click image for larger version. 

Name:	!player head.jpg 
Views:	95 
Size:	34.4 KB 
ID:	127034

  8. #8
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,746

    Info Re: Named Objects WDP 17

    Why didn't you just add the names into Image Filename?

    Acorn


    https://www.talkgraphics.com/showthr...mage-Filenames, so it wasn't "Xara notes", it was Acorn's notes.
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  9. #9
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    Quote Originally Posted by Acorn View Post
    Why didn't you just add the names into Image Filename?

    Acorn


    https://www.talkgraphics.com/showthr...mage-Filenames, so it wasn't "Xara notes", it was Acorn's notes.
    So you mean that I should remove the filename="whatever" and simply write whatever into the Image Filename? Isn't that one and the same? I'd still end up with the code looking for whatever.png and finding whatever_.png...wouldn't I?

  10. #10
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Named Objects WDP 17

    Okay, just tried it. Deleted the filename="whatever" and typed the name into Image Filename and left the code alone. Works just fine and is a damn sight easier than it ever was.

    Now I've got to go back and remove all my workaround underscores and rewrite the names. Liqueur now, fix stuff tomorrow.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •