Shopping Cart Operations > Template Support
Embedding HTML Block SEO Keyword URL
(1/1)
G. O.:
Hello,
I just wanna know if it's possible to do something to embed a specific html block with a unique url link to share outside of website in 3rd parties webpages and apps.
is that possible?
abolabo:
--- Quote from: G. O. on June 02, 2025, 03:18:46 AM ---Hello,
I just wanna know if it's possible to do something to embed a specific html block with a unique url link to share outside of website in 3rd parties webpages and apps.
is that possible?
--- End quote ---
Yes, in theory:
1. create your own controller, let's name it myBannerBlock. As example you can get method "main" from public_html/extensions/banner_manager/storefront/controller/responses/extension/banner_manager.php.
The main function of this controller to send piece of html (tpl-render of ready html-content of block) by request parameters.
2. Then create new html-banner. Get it's banner_id.
3. Insert into table url_aliases data, where `query` = 'banner_id=123&format=html' and `keyword` = 'some_unique_your_seo_keyword'.
4. Then open browser and put url https://www.yourdomain.com/some_unique_your_seo_keyword
It's a good idea to extend functionality our native banner manager extension. Feel free to donate us for this feature :-)
G. O.:
--- Quote from: abolabo on June 02, 2025, 04:12:24 AM ---
--- Quote from: G. O. on June 02, 2025, 03:18:46 AM ---Hello,
I just wanna know if it's possible to do something to embed a specific html block with a unique url link to share outside of website in 3rd parties webpages and apps.
is that possible?
--- End quote ---
Yes, in theory:
1. create your own controller, let's name it myBannerBlock. As example you can get method "main" from public_html/extensions/banner_manager/storefront/controller/responses/extension/banner_manager.php.
The main function of this controller to send piece of html (tpl-render of ready html-content of block) by request parameters.
2. Then create new html-banner. Get it's banner_id.
3. Insert into table url_aliases data, where `query` = 'banner_id=123&format=html' and `keyword` = 'some_unique_your_seo_keyword'.
4. Then open browser and put url https://www.yourdomain.com/some_unique_your_seo_keyword
It's a good idea to extend functionality our native banner manager extension. Feel free to donate us for this feature :-)
--- End quote ---
if you could add this function to next version you will be 1st platform who's adding such idea :) . don't worry i still have too much idea to share here 8)
abolabo:
we are already first platform 8)
And people got our code for free ;)
Navigation
[0] Message Index
Go to full version