• Resolved EAC2015

    (@eac2015)


    Hi – I’ve read a lot of instructions and help files, but sadly I don’t really understand any of it. Not a coder. What I want to do is this:

    First choice – Turn the all URLs into the same words, like “View Page.” Not one by one – there are too many lines.

    Second choice – Wrap the text of the URLS

    Thanks.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter EAC2015

    (@eac2015)

    One more question:

    On the number of rows showing on each page: Can I set the default to 100 and let the max be the whole table in case someone wants to put it all on one page?

    • This reply was modified 5 years, 3 months ago by EAC2015. Reason: being more specific
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    How are you currently creating the links? Are you using the TablePress Automatic URL conversion Extension? If so, you can replace that with a different solution:
    1) Turn off the Extension again.
    2) Add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "columnDefs": [ {
        "targets": [ 2 ],
        "render": function ( data, type, row, meta ) {
          return '<a href="'+data+'">View Page</a>';
        }
      }
    ]

    Regarding the pagination choices: You can use https://tablepress.org/extensions/length-change-all-entry/ to add an “All” entry to the dropdown.

    Regards,
    Tobias

    Thread Starter EAC2015

    (@eac2015)

    Thanks! Yes I was using TablePress Automatic URL conversion Extension. I’ll try these things.

    Thread Starter EAC2015

    (@eac2015)

    Nevermind – found custom commands.

    I put it in the plugin options area where other code is, and it didn’t like it. It had some red X’s. Is that the right place for this?

    “columnDefs”: [ {
    “targets”: [ 2 ],
    “render”: function ( data, type, row, meta ) {
    return ‘View Page‘;
    }
    }
    ]

    • This reply was modified 5 years, 3 months ago by EAC2015.
    Thread Starter EAC2015

    (@eac2015)

    Woot. Thanks both of those things worked. One more question – so the thing looks more even, can the View Page be on one line?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, that’s the wrong field! Not in the “Custom CSS” on the “Plugin Options” screen, but the “Custom Commands” field on the table’s “Edit” screen.

    Regards,
    Tobias

    Thread Starter EAC2015

    (@eac2015)

    Yep I found it. This is my last question:

    One more question – so the thing looks more even, can the View Page be on one line?

    Thank you!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes! For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-8 .column-3 {
      white-space: nowrap;
    }

    Regards,
    Tobias

    Thread Starter EAC2015

    (@eac2015)

    Excellent. Thank you so much.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wrapping text and turning URLs in hyperlinks’ is closed to new replies.