Differnt Template For Blog Page Articles - Question | JoomShaper

Differnt Template For Blog Page Articles

Alison

Alison

Helix Framework 7 months ago

Hi

I have set up two templates, I want template1 to show on all the pages that are selected via menu items. But I want template2 to show on all child pages which open when I click into a full article on a blog page.

I thought if I set template2 to default and then assigned the menu items to template1 this would work.

But it doesn't work.

How can I assign a specific template to article pages only (child pages of a blog).

Thanks

0
10 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #186579

Hi Alison,

We cannot change how Joomla works. In Joomla 3 there was Advanced Template Manager from RegularLabs that allows you more control where template style should be used, in default Joomla core features - those settings are quite limited.

0
Alison
Alison
Accepted Answer
7 months ago #186590

Actually, the reason I asked was becuase I was trying to use Nectar template, but when I click onto a blog article Nectar automatically changes the header background color and does not pick up the custom colors I have used in the template settings.

I tried in another thread to get to the bottom of this but no one could help me sort it out (and I felt I was being ignored in the end).

So I decided to use Helix instead, becuase I am familiar with Helix and trust that it will update well.

So now I have a problem

I cannot have a different heading for my blog articles in Helix But in Nectar there is a different heading for blog articles but I cannot change it.

I feel very stuck in this dilmmea :(

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #186593

Ok, but we cannot help in code customizations for commercial projects.

Maybe use Custom CSS that will be used only on selected subpages.

You can use mix of that magix:

  1. HD-Custom CSS (made in UK) or similar module for Custom code.
  2. Put there needed Custom CSS code - changes & overrides.
  3. Install AMM Free (Regular Labs)
  4. Publish module in "debug" positon
  5. Using new Module assignation settings you can exactly choose when module (1) will be published, also for single article or articles from selected category.

Yes, I used that method many times. This is just a bonus tip, beyond typical support.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #186596

Option No2.

Maybe "easier" will be just replace Article view by using raw Helix Ultimate code , in particular if you need that change for all articles. Thinking out the box... directs to override that folder : templates\nectar\html\com_content\article

By using files taken from raw Helix Ultimate template and then compare if it will be better or worse?

Nothing to lose, maybe 3 min.

0
Alison
Alison
Accepted Answer
7 months ago #186599

I don't know how to do that :(

I think perhaps I need to pay someone who understands your products and codes.

0
Alison
Alison
Accepted Answer
7 months ago #186675

I will try to find someone I can pay to do an override on the menu for the articles but it would be useful if there was a way I could apply my preset colors to it rather than it be picked up from some code I cannot find.

I then have other issues which are problems with the tempate and not just my preference. I have loaded the template on several sites to test and it is the same problem on all of them.

  1. the articles load in a 'fluid' page which is ugly and not how your template preview loads. See this image for the article view https://postimg.cc/G8QSmLDG
  2. Articles have the 'nectar' logo next to the publish date and I do not know how to change this to our logo (and your documentation does not mention this). 3. see this image https://postimg.cc/vgHtXW1x and this image https://postimg.cc/mcVQctdL

I must admit that I have been unable to load the file Template Settings https://postimg.cc/182dd1DV to the site as it comes up with an error https://postimg.cc/nsv11XZr My site is runing Joomla 5.2.4 and PHP 8.2

But I originally installed the quickstart and I have the same problems.

Can you offer any help on any of the above issues?

I thank you for your time Alison

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #186677

Template settings are not needed for you if you had QS installed. And in can be imported only from Template Options > Advanced > Import.

0
Alison
Alison
Accepted Answer
7 months ago #186679

Thanks

0
Alison
Alison
Accepted Answer
7 months ago #186681

OK, so do you know what is the problem with the article page being 'fluid' layout and where to change the 'nectar' logo on the publish dates?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 7 months ago #186693
  1. Fluid can be changed by using simple CSS, basic example,

.article-details {margin: 0 5%;}

  1. About leafs icons (top) , you can override ./images/blog-article-info-01.svg

and hide it by custom CSS: .view-article .article-title-wrap .article-content-wrap .article-info::before {display: none;}

  1. About Bottom Leafs Nectar logo Image is here: images/blog-article-info-02.svg

and to hide it: .view-article .articlebody-bottom .article-info::before {display: none;}

  1. About site Logo (header) on article view - you have to disable CSS3 filter
.com-content.view-article #sp-logo img, 
.com-easystore.view-checkout #sp-logo img {filter: none;}
0