Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Sarah Carriger

Link Label doesnt work

Team,
I’m retrieving a custom field. The field content is actually a number but I am telling the Field Type its a URL. I then give it a link label and use the display option before & after to make up the url eg before: http://xxx <number from custom field here> after: &action=edit

It shows my constructed url in the column OK but there is no link label and it is not clickable.

Should the above work for me? Thanks

3 years, 10 months ago
Stefan van den Dungen Gronovius
Developer

You used an interesting and creative way to try to make the column clickable, I must admin :)
But the link type for the custom field requires the actual (raw) value to be a link, otherwise, it will not work.
Making use of the before and after fields will not work as it will try to put the content before the created link.

The only way for you to make the column clickable is to alter the link by using the following hook:
https://www.admincolumns.com/documentation/filter-reference/ac-column-value/

It requires you to code though.

3 years, 10 months ago
Sarah Carriger

Thanks but if I read that page right then I could probably make it clickable but it still wouldn’t use the link label in the display (because the filter would run over the constructed url value and just change the column type then).
I liked my idea because I could have shortened some long urls into nice short clickable labels which would have fit nicely into a column.
Guess it’s not to be. Thanks

3 years, 10 months ago
Stefan van den Dungen Gronovius
Developer

With that hook you can alter the value as you like or even overwrite it if you like.
In fact, you will have more freedom than with the before and after field.

3 years, 10 months ago

You must be logged in to reply to this topic.