Larval category

Hey, guy, I have a larval script website-

I want Add Text Only This Category-

But In the category.blade.php If someone adds text only then they start showing in all categories.

Taftse replied 1 week ago

Is the source code available anywhere ? so we can see what is happening and point you in the right direction.

From the sounds of it the system uses the "category.blade.php" file for every category so editing it means it shows up on every one of them.

You could possibly add if statement that checks if category == "some category" show this text (Blade If Statements ) but I think that's a bit dirty in my opinion, I would add a description field to the category table and just do an if description is set/not null show description



Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us