Post by nasser.man » Wed Jul 12, 2017 9:29 pm

I can define new settings for my template and save/restore them in admin section of themplate, but how i can use those settings in front-end? is it possible to do this without using ocmod or touching core files?

اگر پیامتون در این انجمن ندیده باشم با من از طریق وبسایتم در تماس باشید.
http://ressan.ir


New member

Posts

Joined
Fri Oct 09, 2015 11:16 pm


Post by simonpieman » Fri Jul 14, 2017 7:37 am

Could you please provide an example?

Go the All Blacks!


Active Member

Posts

Joined
Thu Jul 02, 2015 8:58 am
Location - NZ - Auckland

Post by nasser.man » Fri Jul 14, 2017 1:05 pm

currently i am working on new theme, in this theme user will be able to select header image, so i need create new setting for header image in setting section of template module, i did that but now i want to retrieve that path/url of image in header.tpl.

i did that by using ocmod and virtually editing header.php file. my question is that how i could do this without using ocmod?

اگر پیامتون در این انجمن ندیده باشم با من از طریق وبسایتم در تماس باشید.
http://ressan.ir


New member

Posts

Joined
Fri Oct 09, 2015 11:16 pm


Post by simonpieman » Sun Jul 16, 2017 12:24 pm

Perhaps to investigate the use of additional layout positions in the header to embed your components so that the user can then choose to embed them using Layouts? I think there is a lot of Q&A around the forums if you search for it.

Go the All Blacks!


Active Member

Posts

Joined
Thu Jul 02, 2015 8:58 am
Location - NZ - Auckland
Who is online

Users browsing this forum: No registered users and 33 guests