Author Topic: Embedding HTML Block SEO Keyword URL  (Read 694 times)

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Embedding HTML Block SEO Keyword URL
« 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?
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Embedding HTML Block SEO Keyword URL
« Reply #1 on: June 02, 2025, 04:12:24 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?

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 :-)


“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline G. O.

  • Full Member
  • ***
  • Posts: 189
  • Karma: +12/-1
    • View Profile
Re: Embedding HTML Block SEO Keyword URL
« Reply #2 on: June 02, 2025, 04:55:48 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?

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 :-)

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)
Thank you...
G.O.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2169
  • Karma: +344/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Embedding HTML Block SEO Keyword URL
« Reply #3 on: June 02, 2025, 04:58:38 AM »
we are already first platform 8)
And people got our code for free ;)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod