[Gelöst] How can I create fields for an URL which is fixed, not editable by user?
This support ticket is created vor 5 Jahren, 2 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
How can I create fields for an URL which is fixed, not editable by user?
Hi there from Germany,
I created a custom Post Ty for Teams. On the Elementor Template for this single CPT I added three Buttons, which need a path. I easily could set up 3 URL Fields for URLs for the buttons and use it dynamically.
But I do not want anybody to be able to change these paths under "Teams", as it is used for Layout matters. So the question is how can I hide these individual fields or make it not editable for standard users?
They have access to editing Team posts? They have access to editing the Elementor template?
You say that you "could" make the buttons dynamic. So, that's optional? Meaning you can just add fixed URLs to the template?
In any case, if you are using Access you can put these custom fields within their own Custom Field Group, assigned to the Teams post type, and the go to Toolset > Access Control > Types Fields and specify which user roles are able to edit those fields.
Presumably an administrator would be able to, and some other role which is allowed to edit Team posts should not be able to.
Each club has different teams (my CPT), of course.
In my Template I want to link to different pages, but these pages are different for each team (actual team posts, galleries). So in my opinion it makes sense to create a field for each of the different paths. But another user of the Backend should be able to edit all fields except these fields for the paths.
The buttons in blue on this page for example: versteckter Link
The only solution seems to be for me to hide these field for paths somehow. Am I right?