Jump to content

Category ID in Database Field


Recommended Posts

In the Pages App, I have a database field that I only want to display for certain categories. How would I get the category ID in the display options? (Where I edit custom format).

 

Failing that, how I would get the cat ID in the record row and record templates?

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

  • Admin

Well the first question I ask is why aren't you restricting the field on the category level? Edit Category > Form Fields

0_mainsignature.jpg

image.png

Profile set made by myself and original Artwork by Fae Merriman, my daughter.

 

 

Link to comment
Share on other sites

1. Because I clean forgot about that option 🤣

 

2. Because I hard code it into the record row template so it shows up regardless. 

 

EDIT: But it won't if I remove the default value so that's fine.

Edited by Kit the Human

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

  • Admin

Give me a few and I will get you the category ID. Pretty sure it’s just $record->catergory_id but I could be wrong. 

 

@Kit the Human so that you can leave the default. 

  • Love 1

0_mainsignature.jpg

image.png

Profile set made by myself and original Artwork by Fae Merriman, my daughter.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.