Extension, Module

Archived
Forum
(read-only)


For official support, visit the official support site »

Structure

ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Tom Jaeger

     

Linking from a custom field to a structure entry

General

Moonbeetle
Moonbeetle

I have like 300 channel entries for a channel called “Pages” that is managed by Structure. Every channel entry has a wysiwyg custom field for the body tekst. My client wants setup hyperlinks inside the custom field text to other Structure managed entries. Given the number of entries it’s not so easy. So I setup a Structure sitemap on the frontend where my client can copy/paste links from to use in his wysiwyg.

Is there a faster way?

( $this->structure->get_data() can be used in an accessory I’ve noticed. However $this->structure->sitemap() doesn’t work, too bad otherwise I might have created a workaroud so that my client doesn’t need to switch between the CP and the frontend )

rockthenroll
# 1
Developer
rockthenroll

I don’t think so. We have a fieldtype called StructureFrame, which is a dropdown of all pages, but it won’t work inside a WYSIWYG field unless you modified it.