Handle internal page links (anchors)

Permalink Browser Info Environment
Is it possible to add internal page links (anchors)?

Type: Pre-Sale
Status: Resolved
Kienz
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hey Kienz,

Yes, that's possible. You can see it here in action:

https://www.youtube.com/watch?v=IYHGZNWILwI&feature=youtu.be&...

Does that answer your question? :)

As you can see, internal or external links both work!

Kind regards,

Ramon
Kienz replied on at Permalink Reply
Kienz
Sorry, but I can't see it. :)

I mean anchor links (http://www.w3.org/TR/html401/struct/links.html#h-12.2.1).
Something like that:
<a href="#anchor-link">Anchor Link</a>
...
<a name="anchor-link"></a>
ramonleenders replied on at Permalink Reply
ramonleenders
Oh, that's what you mean. No, that's not possible. I can make this if you want?

But what does the last one do? This one does not output text, only HTML? Then you can use other blocks I guess?
ramonleenders replied on at Permalink Reply
ramonleenders
And... is this a whole new list item type, or should this be placed after a page URL. So you select a page and you want to add #anchor-link behind it?

So

List item: page
Page: Home
Title:
Anchor: #anchor-link

This will output:

<a href="www.url.com/home#anchor-link>Home</a>

Like this?
Kienz replied on at Permalink Reply
Kienz
Both would be great - Adding anchor (http://example.com#test) to a internal/external page or to the current page (#test). With an anchor you can jump to a defined area on the page.

The area can be defined with <a name="test"></a>. Now, if you define a link with <a href="#test">Test</a> you can jump (scroll) to this area.
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

You can now add an anchor for both "Page" and "External URL". Entering no URL for "External URL" will result in only adding the #some-anchor to the href attribute, which will give you the current page as you requested (to jump to an area on the same page). And page obviously adds it after the anchor of the page :)

Updated the add-on in the store, so you're ready to download this latest version!

Kind regards,

Ramon
Kienz replied on at Permalink Reply
Kienz
Thank you very much!
Great work!

Best regards
Stefan

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.3.1
Version Installed - 5.7.3.1
Database Version - 20150109000000

# concrete5 Packages
Anitya Theme (0.9.2), Block Designer (1.0.1.1), Call to Action (0.9.1), ExchangeCore Dev Tools (0.9.2), Navigator (0.9.1), ProEvents (2.0.3), Spacer (0.9.0), Tweet Feed Block Components (0.9.10), Twitter Embedded Timeline (0.9.5), Vedana Theme (0.9.4), Whale Galleria (1.2.0).

# concrete5 Overrides
blocks/autonav, blocks/download, blocks/faq, blocks/feature, blocks/image, blocks/next_previous, blocks/page_list, blocks/share_this_page, blocks/social_links, blocks/testimonial, languages/da_DK, languages/de_DE, languages/el_GR, languages/fi_FI, languages/fr_FR, languages/it_IT, languages/ja_JP, languages/nl_NL, languages/ru_RU, languages/sl_SI, languages/sv_SE, languages/tr_TR, themes/anitya_custom

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 1 minutes.

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.6.2

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, yaz, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.