Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Stefan M.

    (@stefan-m-1)

    hi, what HTML was inside the field and what is showing today?

    PHP has changed massivly if you have used [wctphp] but HTML should work.

    Regards

    Thread Starter alnpetepress

    (@alnpetepress)

    I had a simple a tag with an href and a title attribute. Previously it displayed correctly, after the update it just shows the html. The field is a text field, and it’s being displayed inside a simple p tag.

    Plugin Author Stefan M.

    (@stefan-m-1)

    copy past me here the code which is not working…

    Thread Starter alnpetepress

    (@alnpetepress)

    I can’t I’ve had to delete the data to stop the page looking dreadful and replace it with straight text for now.

    But it was a column called authors which had content similar to the following:

    <a href="author1.html" title="Read more...">author1 name</a>,
    <a href="author2.html" title="Read more...">author2 name</a>,
    <a href="author3.html" title="Read more...">author3 name</a>

    With a table setup that included the following:

    <p>{authors}</p>

    and it used to show on the page as:

    author1 name, author2 name, author3 name

    all as links, but after the upgrade it showed on the page as:

    <a href="author1.html" title="Read more...">author1 name</a>,
    <a href="author2.html" title="Read more...">author2 name</a>,
    <a href="author3.html" title="Read more...">author3 name</a>

    The number of authors is variable (from 1 to 7 at the moment, could be more) so I don’t really want to have separate columns for each possible author and another one for a link to their page, especially as in most cases only one or two are used.

    Plugin Author Stefan M.

    (@stefan-m-1)

    <a href="{author1}.html" title="Read more...">{author1}</a>,
    <a href="{author2}.html" title="Read more...">{author2}</a>,
    <a href="{author3}.html" title="Read more...">{author3}</a>


    like that?

    Thread Starter alnpetepress

    (@alnpetepress)

    That would mean having a potentially infinite number of columns to cater for multiple authors. If I could have a proper many-to-many relationship with an ‘author’ table or a ‘one-to-many’ relationship with an ‘author x-ref’ table to achieve the same thing it would achieve the desired effect.

    But why did it stop working as previously?

    Plugin Author Stefan M.

    (@stefan-m-1)

    Has this ever worked?

    relations between tables is planned, but was never implemented.
    this will be a feature in the future.

    I’m working right now on the relationship tables which are upcoming.

    Thread Starter alnpetepress

    (@alnpetepress)

    It worked with html embedded in the column contents, as I showed above, for the last few months right up until I applied the latest upgrade 6 days ago.

    Plugin Author Stefan M.

    (@stefan-m-1)

    can you do an backup (not export) and send me the file via the https://bugtracker.wuk.ch ?

    I can then reimport it and look how you did it (the old working code which is now broken). I can then see why its not working anymore and fix it.

    Plugin Author Stefan M.

    (@stefan-m-1)

    If you are fast, the next release is this evening and if you sending it early, I can add the fix already in this release…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: custom tables] HTML in field not working’ is closed to new replies.