PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Pixel - if statements?

paul-nosko

Sep 26th, 2017 03:50 PM

Hi

Is there a way on the download page to show specific text in an area depending on what category you are viewing? Or a way to make a different category load a different download page template?

paul-nosko

Sep 26th, 2017 03:52 PM

Like for example, in smarty I could do this

{if $Category==1} show this {else} show that {/if}

mark

Sep 26th, 2017 07:38 PM

You can do that by overwriting a view using Blade or PHP syntax. You should properly learn Laravel.

paul-nosko

Sep 26th, 2017 07:52 PM

Hi

I've been editing the templates no problem. I just need to know how to have something just on a specific category but not to redo it for everything.

http://websiteresources.ca is what i have done so far (the fonts area uses a different script).