OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Orchard is missing a 'protocol' to insert an Orchard object inside a BodyPart #3634

Open orchardbot opened 11 years ago

orchardbot commented 11 years ago

@csurieux created: https://orchard.codeplex.com/workitem/19805

May be I missed it but I don't found a module to do this. We should be able to:

invoke all extensions (html, url, display) to secure path to files and images for and (kind of razor parsing/translating tool)

insert any shape prepared for this bodypart, or the keyword used , this could solve many problems as floating menu. form-posting, dynamic content client-side, etc

To do this today, the only solution I found is writing a dedicated module to replace body part, and for each demand building a new module ????

As far as on some other issues some are speaking about replacing or upgrading the text-editor, this could be a door to allow insertion of dedicated shapes that could be analyzed and converted inside the body shape builder code ? I am interested to work on this.

orchardbot commented 11 years ago

@Piedone commented:

I'm not sure I understand. You'd like to be able to use Razor inside the body text?

orchardbot commented 11 years ago

Znowman commented:

Well I think he means he would like to insert a complete dynamic shape into a bodypart text.

Like a macro which you can select from for example a dropdown and surround it by your custom text in the body part. Just like a template system

Nice idea!

orchardbot commented 11 years ago

@Piedone commented:

Tokens?

orchardbot commented 11 years ago

@csurieux commented:

@znowman yes excatly. Not necessarly the great armada or razor, may be something more soft and fast, May be a filter dedicated to this new flavor for body, a dedicated keyword esay to detect in the xml nodes of the body ( I see Bertrand doing this for url in vandely extensions) Only problem I see is pluggin the filter to the shape using its name and parameters (parts?) sent ?

orchardbot commented 11 years ago

@csurieux commented:

And having the shape interpreted also....

orchardbot commented 11 years ago

@agriffard commented:

You want a 'WordPress ShortCode' like feature ;-)

orchardbot commented 11 years ago

@csurieux commented:

I don't know this ShortCode, but in my older WebForm time, I was able to do this ... but there were no shapes and this seems to be the killer Orchard concept.