Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Include content element in news allow only article elements #5671

Open
Zeromax opened this issue Apr 18, 2013 · 6 comments
Open

Include content element in news allow only article elements #5671

Zeromax opened this issue Apr 18, 2013 · 6 comments
Labels

Comments

@Zeromax
Copy link

Zeromax commented Apr 18, 2013

I just want to use the include content element in the news article, but it shows me the article content elements only.
I think the problem is the Database Select in the getAlias function:

https://github.com/contao/core/blob/master/system/modules/core/dca/tl_content.php#L1077

@leofeyer
Copy link
Member

I'm not sure how to set up the "element alias" element in future versions though.

a) Should it allow to alias any content element, no matter whether it is part of an article, an event or a news item?

b) Or should only allow to alias elements of the same "category", meaning an alias in an article can only reference other article elements and a content element of a news item can only reference other news item elements.

@contao/developers @tristanlins @discordier

@aschempp
Copy link
Member

I dont see a reason to limit the category. It could be very useful to link article content into a news.

@Zeromax
Copy link
Author

Zeromax commented Sep 26, 2013

So it would be cool if the Elements are Grouped by "Article", "News" and so on.
Is it possible to not show already included CEs? If I am right they are shown and that's not correct IMHO.

@frontendschlampe
Copy link

another problem which belongs to this discussion: it's not possible to copy & paste articles or ce's from "Articles" to "News" or "Events" ... but that should be quite useful!

@dmolineus
Copy link
Contributor

Besides this issue and the one @hofff states (see #5234), there are multiple issues with the dynamic parent tables of tl_content:

  • No opportunity to detect which ptables are used (a select with group by ptable does not really solves it, because there does not have to be content of possible ptables)
  • No opportunity to find all allowed entries for a ptable

When solving this issue there should be a general solution for those stated limitations.

@leofeyer leofeyer modified the milestones: 3.x.x, 3.3.0 Apr 15, 2014
@Zeromax
Copy link
Author

Zeromax commented Feb 16, 2015

@leofeyer is it possible to get this in 3.5?

@leofeyer leofeyer modified the milestone: 3.x.x Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants