the path of extension

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

the path of extension

Post by Meis2M »

Hello
what is the variable path of

Code: Select all

ext/meis2m/aafs/styles/all/theme/images
?
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: the path of extension

Post by Meis2M »

up
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: the path of extension

Post by david63 »

I think that you need to explain what it is you are trying to do/look for
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: the path of extension

Post by Meis2M »

Hi in this here i have a location image:
https://github.com/Persian-phpBB/AJAX_A ... .html#L214

this is:

Code: Select all

</li></ul><table><tr style="vertical-align:top;"><td><img src="./images/list.gif" />
this html file is in:
ext/meis2m/aafs/styles/all/template/event/index_body_markforums_after.html

and my images folder is in:
ext/meis2m/aafs/styles/all/theme/images/

so how can set address to this?
img src="./images/list.gif
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: the path of extension

Post by kasimi »

Inject the core.root_path parameter, assign 'AAFS_IMAGES_PATH' => $this->root_path . 'ext/meis2m/aafs/styles/all/theme/images' to the template and use src="{{ AAFS_IMAGES_PATH }}/list.gif" in your template file.
Post Reply

Return to “Extension Writers Discussion”