Author Topic: Link to content page  (Read 9957 times)

Offline helperbee

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +2/-0
    • View Profile
Link to content page
« on: July 22, 2015, 06:23:27 PM »
I've created content pages. I want to link to those content pages from HTML block, but can't determine the URL.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +345/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Link to content page
« Reply #1 on: July 22, 2015, 06:56:30 PM »
please do now duplicate topics
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline helperbee

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +2/-0
    • View Profile
Re: Link to content page
« Reply #2 on: July 22, 2015, 07:48:42 PM »
I'm not duplicating topics.

I'm now working in an HTML Block and want to link text to a Content page, but can't determine the URL for the Content page.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +345/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Link to content page
« Reply #3 on: July 23, 2015, 05:41:36 AM »
on admin side you can check content_id. It consist of 2 part: {parent_content_id}_{content_id} For ex. content_id = 0_5. So on storefront you should to find this content by url
Code: [Select]
http://your_domain.com/index.php?rt=content/content&content_id=5
best regards
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline helperbee

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +2/-0
    • View Profile
Re: Link to content page
« Reply #4 on: July 23, 2015, 12:52:43 PM »
Maybe I'm looking in the wrong place in admin to find the content_id. I've checked the Content Manager and the Categories.

When in Content Manager, I clicked on the content (Getting Started) which I want to determine it's URL.  The address bar displays //your_domain.com/a/index.php?rt=design/content&s=admin123&token=5ccd7c88d98ad2b1a44c8fae2d27cfef#rowNum=10000

It doesn't contain the term content_id.

Again, I'm trying to determine URL so I can build menu based on Category menu which link to external and internal pages. Plus, I need to link from an HTML Block to a Content page.


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +345/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Link to content page
« Reply #5 on: July 23, 2015, 01:29:27 PM »
what about edit new created content?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline helperbee

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +2/-0
    • View Profile
Re: Link to content page
« Reply #6 on: July 23, 2015, 05:02:09 PM »
Thanks for your efforts. I'm still stuck.

Can you provide more details about how to locate the content _id? I'm using AbanteCart 1.2.2 with FoxY template, if that makes a difference.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +345/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Link to content page
« Reply #7 on: July 24, 2015, 04:17:07 AM »
go to admin menu design->content, choose some content to edit.
i will get URL like this http://your_host/index.php?rt=design/content/update&content_id=0_1....
where 0 - is id of parent content page, 1 - needle.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod