Create a new static text and embed it in the php file

28.05.2021 12:29
#1
up2date-website
Joomshopping forum user no avatar
Name: Tatjana
25.03.2015
Posts: 10
Quote
Create a new static text and embed it in the php file

I'm creating a new static text with the alias "squirrel".
Then I open a template file and what do I write with php?
<div class = "squirrel"><?php print $this->squirrel; ?></div>?
Of course it doesn't work. How I make it right?

Thank you!

----------------------------------------------------------------------------
$statictext = JSFactory::getTable("statictext","jshop");
$row = $statictext->loadData(squirrel);
print $row->text;

is it aktuell?


Letzte Änderung: 28.05.2021 14:37
 
28.05.2021 19:49
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 22501
Quote
Aw: Create a new static text and embed it in the php file

$statictext = JSFactory::getTable("statictext","jshop");
$row = $statictext->loadData('squirrel');
print $row->text;

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.