<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get page/blog post id from CTA button in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/712064#M31093</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to replace a CTA button from around 300 pages &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; All of the CTA buttons are linked to internal pages/blog posts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to do this since CTA links don't count as internal links, so I need to replace them with &lt;EM&gt;&amp;lt;a href="XXX"&amp;gt;Link&amp;lt;/a&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get the &lt;STRONG&gt;page id&lt;/STRONG&gt; or &lt;STRONG&gt;absolute URL&lt;/STRONG&gt; to the page that the CTA button is linking to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only extract the CTA button id and the redirect URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone had a similar experience?&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 18:40:26 GMT</pubDate>
    <dc:creator>MKukanjac</dc:creator>
    <dc:date>2022-10-30T18:40:26Z</dc:date>
    <item>
      <title>Get page/blog post id from CTA button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/712064#M31093</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to replace a CTA button from around 300 pages &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; All of the CTA buttons are linked to internal pages/blog posts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to do this since CTA links don't count as internal links, so I need to replace them with &lt;EM&gt;&amp;lt;a href="XXX"&amp;gt;Link&amp;lt;/a&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get the &lt;STRONG&gt;page id&lt;/STRONG&gt; or &lt;STRONG&gt;absolute URL&lt;/STRONG&gt; to the page that the CTA button is linking to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can only extract the CTA button id and the redirect URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone had a similar experience?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 18:40:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/712064#M31093</guid>
      <dc:creator>MKukanjac</dc:creator>
      <dc:date>2022-10-30T18:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get page/blog post id from CTA button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/712924#M31113</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123851"&gt;@MKukanjac&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for the interesting question. Let's see if we can get the conversation going —&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128951"&gt;@FabianRichter&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;have you spent any time digging around in CTAs? Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 17:22:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/712924#M31113</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-11-01T17:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get page/blog post id from CTA button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/713134#M31120</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not sure, if I got you right. You can get the linked page of the CTA in the edit mode of the CTA or simply by clicking on it.&lt;/P&gt;&lt;P&gt;The easiest wey to get the ID of the page/blog post, is to simply click the CTA button and in your HubSpot menu go to "edit page". The ID is inside of your URL then:&amp;nbsp;&lt;EM&gt;app.hubspot.com/pages/&amp;lt;your_portal&amp;gt;/editor/&lt;STRONG&gt;&amp;lt;your_id&amp;gt;&lt;/STRONG&gt;/content&lt;/EM&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope this helps.&lt;/P&gt;&lt;P data-unlink="true"&gt;Best,&lt;BR /&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:58:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/713134#M31120</guid>
      <dc:creator>FabianRichter</dc:creator>
      <dc:date>2022-11-02T07:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get page/blog post id from CTA button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/713307#M31132</link>
      <description>&lt;P&gt;Hey Fabian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I wasn't clear, but I was referring to the HUBL code. If I use a CTA field in the code and generate the CTA by using the CTA id, I only get the redirect URL that eventually leads to the real URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the function that generates the CTA:&amp;nbsp;&lt;STRONG&gt;cta('CTA_BUTTON_ID'). &lt;/STRONG&gt;I could get a lot of data from it by using&amp;nbsp;&lt;STRONG&gt;pprint,&amp;nbsp;&lt;/STRONG&gt;but no page id nor the absolute URL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if it's possible to get the page id or the absolute URL to that page from this CTA field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I finally managed to do it with JavaScript since I figured that CTA button generates an attribute that's called&amp;nbsp;&lt;STRONG&gt;cta_dest_link&amp;nbsp;&lt;/STRONG&gt;and from there you can read the absolute URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, couldn't manage to find a solution using HUBL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:56:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-page-blog-post-id-from-CTA-button/m-p/713307#M31132</guid>
      <dc:creator>MKukanjac</dc:creator>
      <dc:date>2022-11-02T13:56:26Z</dc:date>
    </item>
  </channel>
</rss>

