Macro for duplicating specific content from within a webpart

John Walter asked on August 25, 2015 16:47

Hi, Just starting to learn about macros and they are great. I am looking to use them to put duplicate content on pages of the website. I have it working to pull the entire webpart, but I was wondering if there is a way to pull a specific area of a webpart, say a div by id? I am using this macro currently: {% Documents.WithAllData["/Life/Macro-Test-Page-2"].School_EditableText %}

This works great to get the entire webpart of School_EditableText from that page. Would love to be able to a pull just one paragraph which I have given an id="one".

Thanks in advance!

Recent Answers


Brenden Kehren answered on August 25, 2015 18:20

Seems like something better suited for a custom page type vs. editable text. Then you can simply grab a field's data vs. what you're trying to do.

0 votesVote for this answer Mark as a Correct answer

John Walter answered on August 25, 2015 19:10

That won't work since there are already hundreds of pages built that we need the ability to pull from. There is no way to identify content from within an editable text webpart so that it can be pulled separate from the rest of the webpart?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.