fbpx

Control Content Visibility on Your Joomla Website with Display Conditions Know More

Welcome, Guest
Username: Password: Remember me

TOPIC: (SOLVED)override article

override article 1 month 1 day ago #25364

  • HDcms
  • HDcms's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
Hello

I have already done and managed an article override. I now want to switch to astroid.
I took astroid_template_zero *
I made an overload either with
  • the backoffice template
  • the original default.php file that I renamed to loisMob.php
I then declare it in the blog menu
I overloaded
  • complete by copying the modified part of the other Helix template
  • simple with:
<div itemprop = "articleBody">
<h2> <? php echo "START"; ?> </h2> <? php echo $ this-> item-> text; ?>
<h2> <? php echo "END"; ?> </h2>
</div>

I can't see any changes. Is this different with Astroid?
* besides I do not see too much, what are the differences? will they be maintained under joomla 4?
Regards



The topic has been locked.

override article 4 weeks 2 days ago #25397

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4174
  • Thank you received: 611
  • Karma: 110
Hi,

If the override is named default.php, it will take effect automatically. If it's something else (like your case), you have to select the file in the article layout tab and once you do, It should provide the layout you need. Ability to override layouts is a Joomla functionality and Astroid can't break it.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.

override article 4 weeks 9 hours ago #25446

  • HDcms
  • HDcms's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
Hello
It's strange, but it seems that the capital letter is the problem :huh:
file-name.php works
Regards
The topic has been locked.

override article 4 weeks 5 hours ago #25466

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 3890
  • Thank you received: 595
  • Karma: 101
Nice,

Problem solved.
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The topic has been locked.
Moderators: chandandeep
Time to create page: 0.344 seconds