Bug Report: Sitemap Permissions added in 4 different places, not working w/ TinyMCE
Permalink
I have created an Editor group and have given Editor Permissions in FOUR DIFFERENT PLACES! (screenshots attached)
1. Sitewide Settings > Access
2. Sitewide Settings > Other Permissions (gave all the same as Admin)
3. Sitemap > System Pages > Sitemap & File Manager (all of these pages, including children)
4. Sitemap > Access - added Editor group and checked "Acess Sitemap and Page Search"
I cleared the cache and updated the cache.
RESULT:
• I can NOT add a Page Link through TinyMCE as the Editor user.
• I CAN add a page link through JordanLev's Designer Content block as the Editor user.
WHY?! I know JordanLev's block is amazing and stupendous so that's why his works like a charm, but how can I get this effing TinyMCE page link to work?
1. Sitewide Settings > Access
2. Sitewide Settings > Other Permissions (gave all the same as Admin)
3. Sitemap > System Pages > Sitemap & File Manager (all of these pages, including children)
4. Sitemap > Access - added Editor group and checked "Acess Sitemap and Page Search"
I cleared the cache and updated the cache.
RESULT:
• I can NOT add a Page Link through TinyMCE as the Editor user.
• I CAN add a page link through JordanLev's Designer Content block as the Editor user.
WHY?! I know JordanLev's block is amazing and stupendous so that's why his works like a charm, but how can I get this effing TinyMCE page link to work?

NOTE: I do NOT have Advanced Permissions turned on because according to the documentation, there is no reason it should be.
In fact, it just seems to be a problem with the Content block in general. Is there some special way to add Group permissions to that Content block?
Couple more screen shots attached...
1. when I use the Content block and hit the save button, I get an Error message logging me out.
2. when I click the Page Link, it says "Access denies" from the Sitemap.
Like I said, as the Editor I can grab a page link fine with JordanLev's Designer Content block, so this has something to do specifically with the TinyMCE editor.
1. when I use the Content block and hit the save button, I get an Error message logging me out.
2. when I click the Page Link, it says "Access denies" from the Sitemap.
Like I said, as the Editor I can grab a page link fine with JordanLev's Designer Content block, so this has something to do specifically with the TinyMCE editor.
deleted
Fortunately, I did not just accidentally destroy my website as I had thought. Pair Networks server crashed YET AGAIN. Can't recommend these guys anymore.
Still would love to know WTF is up with this GD TinyMCE.
Still would love to know WTF is up with this GD TinyMCE.
I just deleted my post because I saw you put best answer, but turns out you did not have an answer. Not sure how the system works and if you got my post through email, but do you have errors on to see if you get anything. My best suggestion is step through it (if no errors appear). I got the two types of errors above and it was something small like a name was wrong on a page or handle, and it would only freak out on certain actions. It sucked, and took time but got it resolved. And I did like your "deleted" post, but your last post did make me laugh. The pop ups are javascript found in the ccm area. If you need more info or more ideas let me know.
Okay, how do I turn on errors? I went to the "debug" panel which seems like a good place to find that sort of thing, but I did not see anything there except:
Development
PHP errors and database exceptions will be displayed.
which is already checked.
There is no error being displayed, just this (see screenshot)
Development
PHP errors and database exceptions will be displayed.
which is already checked.
There is no error being displayed, just this (see screenshot)
Yes, what is the ccm area?
No errors are showing and errors are turned on, so Debug is being useless.
No errors are showing and errors are turned on, so Debug is being useless.
Dont post so much you fill up my box too fast. lol. Does it happen when you click "Insert Link to Page" or "Insert/edit link"? Does the Content save to the page when you click "Add"? I call it the ccm area because in concrete they have several css and js files that have this and some times makes it a pain when going through. But all the js is at /concrete/js which their is a tiny_mce folder too. But answer my questions before I get all involved in this.
EDIT: That is how you turn errors on, and guess it does not help today, and yeah you should not have marked the best answer lol.
EDIT: That is how you turn errors on, and guess it does not help today, and yeah you should not have marked the best answer lol.
Q: Does it happen when you click "Insert Link to Page" or "Insert/edit link"?
A: Insert Link to Page = Access Denied. Can't view the Sitemap to pick a page. Didn't try Insert/edit link.
Q: Does the Content save to the page when you click "Add"?
A: No, I get the error message and it instantly logs me out as in the attached screenshot. It actually logs me out completely after I click "Exit Edit Mode," but only after I try to add something with the Content block.
A: Insert Link to Page = Access Denied. Can't view the Sitemap to pick a page. Didn't try Insert/edit link.
Q: Does the Content save to the page when you click "Add"?
A: No, I get the error message and it instantly logs me out as in the attached screenshot. It actually logs me out completely after I click "Exit Edit Mode," but only after I try to add something with the Content block.
Do I need to turn on Advanced Permissions or something? I would prefer to avoid that since it seems quite dangerous and my site is almost completely finished.
I am working with another C5 community member who's helping me with some specialized sections and he has taken a look and said that it might be a conflict with another Add-on.
Here are the add-ons installed:
• Discussion
• Designer Content
• Tweetcrete
of those, the only one I could imagine conflicting would be Designer Content because it has TinyMCE and PageLink capabilities.
I am working with another C5 community member who's helping me with some specialized sections and he has taken a look and said that it might be a conflict with another Add-on.
Here are the add-ons installed:
• Discussion
• Designer Content
• Tweetcrete
of those, the only one I could imagine conflicting would be Designer Content because it has TinyMCE and PageLink capabilities.
You are most likely correct because when I saw it this issue, it was also a naming conflict, but it was not on the TinyMCE, but on another function.
If you go to the add content block screen. Don't click Add or Insert Link to page just close and exit edit mode. Does this log you out as well?
Have you tried to change the change the toolbar set (ie Simple, Advance, office, or Custom) just to see if you get the same results?
- Actually I believe it does not log you out after you click Exit Edit Mode, but did that in the content block, but you do not realize it till you click this button.
Have you tried to change the change the toolbar set (ie Simple, Advance, office, or Custom) just to see if you get the same results?
- Actually I believe it does not log you out after you click Exit Edit Mode, but did that in the content block, but you do not realize it till you click this button.
Q: If you go to the add content block screen. Don't click Add or Insert Link to page just close and exit edit mode. Does this log you out as well?
A: YES! It seems that if I select Content block from the Add Block area, that is the cue to log me out. No other blocks do this, I tried most of the rest of them.
Q: Have you tried to change the change the toolbar set (ie Simple, Advance, office, or Custom) just to see if you get the same results?
No, I don't know anything about that.
Q: - Actually I believe it does not log you out after you click Exit Edit Mode, but did that in the content block, but you do not realize it till you click this button.
A: YOU ARE RIGHT! I just added a Content block and closed it without adding anything at all, refreshed the page and voila! Logged out.
A: YES! It seems that if I select Content block from the Add Block area, that is the cue to log me out. No other blocks do this, I tried most of the rest of them.
Q: Have you tried to change the change the toolbar set (ie Simple, Advance, office, or Custom) just to see if you get the same results?
No, I don't know anything about that.
Q: - Actually I believe it does not log you out after you click Exit Edit Mode, but did that in the content block, but you do not realize it till you click this button.
A: YOU ARE RIGHT! I just added a Content block and closed it without adding anything at all, refreshed the page and voila! Logged out.
To the second one - It is under the dashboard - "Sitewide Settings", towards the bottom - "Rich Text Editor" - Just change the Toolbar Set and see if you get the same logging out as soon as you choose it. Based on what you said, I believe it will, just trying to limit down the files I look into.
Yep, same thing with Simple, Advanced or Office setup. So, that is ruled out.
It does not happen with the Administrator, though. Only the Editor Group I've created. Does that fit in with the conflict theory?
I would say no, because if it was a conflict then both would have the issue. But this has to be a permission issue, where I believe it is fine displaying all the blocks to the "Editor" Group but then once in the Add Content block, the system, thinks that this user should not have access to the content block. Since this only happens in the content block I believe this is the only place that this could happen. There is files that the addon has that are the same, but it keeps it separate and I would have think we would have heard something about this by now.
It's something in my theme. No idea what, but I just switched to default theme and was able to use both Content block and all my other blocks as the Editor with no problem.
Besides
Loader::element('header_required');
and
Loader::element('footer_required');
is there anything else that absolutely HAS to be in a C5 template?
I just compared to the default themes and ALL the files start with this:
defined('C5_EXECUTE') or die("Access Denied.");
I haven't ever put that in my themes, but they've always worked. I'm not sure why I never put that in. I guess it didn't used to be on older versions of C5 or else I just screwed up from the beginning and never noticed until now. Is this super important?
Besides
Loader::element('header_required');
and
Loader::element('footer_required');
is there anything else that absolutely HAS to be in a C5 template?
I just compared to the default themes and ALL the files start with this:
defined('C5_EXECUTE') or die("Access Denied.");
I haven't ever put that in my themes, but they've always worked. I'm not sure why I never put that in. I guess it didn't used to be on older versions of C5 or else I just screwed up from the beginning and never noticed until now. Is this super important?
yeah, I added it and it didn't fix anything, so you're right.
<?php defined('C5_EXECUTE') or die("Access Denied.");?>
is apparently unrelated
<?php defined('C5_EXECUTE') or die("Access Denied.");?>
is apparently unrelated
I also just realized that you do not have "Customize Toolbar" in your content header, which is strange because the code gets set up in "\concrete\elements\editor_controls.php"
<ul> <li ccm-file-manager-field="rich-text-editor-image"><a class="ccm-file-manager-launch" onclick="ccm_editorCurrentAuxTool='image'; setBookMark();return false;" href="#"><?php echo t('Add Image')?></a></li> <li><a class="ccm-file-manager-launch" onclick="ccm_editorCurrentAuxTool='file'; setBookMark();return false;" href="#"><?php echo t('Add File')?></a></li> <?php if (isset($mode) && $mode == 'full') {?> <li><a href="#" onclick="setBookMark();ccmEditorSitemapOverlay();"><?php echo t('Insert Link to Page')?></a></li> <?php } else {?> <li><a href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/sitemap_overlay.php?sitemap_mode=select_page" onclick="setBookMark();" class="dialog-launch" dialog-modal="false" ><?php echo t('Insert Link to Page')?></a></li> <?php } ?> <li><a style="float: right" href="<?php echo View::url('/dashboard/settings')?>"><?php echo t('Customize Toolbar')?></a></li> </ul>
How do you know I don't have "Customize Toolbar" in my content header without being able to see my source code? This is just a general question since I don't even really know what you're talking about.
Well since we have concrete and the core blocks/files should be the same, I can look at mine and assume yours is the same. I have not updated, because of what I am using concrete for, but it is safe to assume that they did not remove it. I could be wrong. See my pic
The theme is used in the content block, to match the "content_css" which maybe this is causing the conflict. More of the style, than the .php files. This is a long shot, but we will see.
EDIT: I believe for a theme, you need the elements folder with (header.php and footer.php), main.css, typography.css, (And i think default.php, view.php, full.php the minium) Thats what I see as the base
The theme is used in the content block, to match the "content_css" which maybe this is causing the conflict. More of the style, than the .php files. This is a long shot, but we will see.
EDIT: I believe for a theme, you need the elements folder with (header.php and footer.php), main.css, typography.css, (And i think default.php, view.php, full.php the minium) Thats what I see as the base
Ah!
Well, I've been comparing my template to the default templates and I have two questions:
1. what is the difference between:
and
??
My template uses the first method.
2. is typography.css REQUIRED? I thought you just add that if you want to change how stuff displays in TinyMCE:
I do not have typography.css in my template at all. That might be the problem. Checking now...
Well, I've been comparing my template to the default templates and I have two questions:
1. what is the difference between:
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
and
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
??
My template uses the first method.
2. is typography.css REQUIRED? I thought you just add that if you want to change how stuff displays in TinyMCE:
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
I do not have typography.css in my template at all. That might be the problem. Checking now...
That is it! in \concrete\models\page_themes.php " the here is the code
which this is the css
which is called from \concrete\blocks\content\editor_config.php
Which I believe is causing the tinyMCE to crap out, without this parameter.
public function getThemeEditorCSS() {return $this->ptURL . '/' . PageTheme::FILENAME_TYPOGRAPHY_CSS;}
which this is the css
const FILENAME_TYPOGRAPHY_CSS = "typography.css";
which is called from \concrete\blocks\content\editor_config.php
content_css : "<?php echo $theme->getThemeEditorCSS()?>",
Which I believe is causing the tinyMCE to crap out, without this parameter.
I do not understand what that means. Are you telling me I have to add something to my template or...?
Okay, well, I learned a hard lesson today.
After changing
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
to
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('style.css')?>" />
and adding
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
It works. It only took me from about 10:30am to 4:40pm to fix this problem. Wow.
Thank you so much for your help!!!
After changing
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
to
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('style.css')?>" />
and adding
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
It works. It only took me from about 10:30am to 4:40pm to fix this problem. Wow.
Thank you so much for your help!!!
Actually, I think all I had to do was drop typography.css into my theme because I just sucessfully used a Content block as the Editor on a different page with a template that doesn't even have the typography.css link. It only has:
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
Told you it was something simple that was going to take forever to find out. Don't take shortcuts! ; ) But now I know how the theme affects the Content block. Good to know, and fun stuff. I like issues like this. Glad its over now!
But, I don't understand... I just looked at the Theme Documentation and it doesn't say anywhere that typography.css MUST be called.
EDIT: I see that it does say how styles must be called differently than files. It doesn't show the full code on the documentation, you have to look at the default theme to get the full stylesheet code.
It doesn't say typography.css is mandatory for a theme either, but again it is in the default theme. I guess from now on, I will just duplicate the default theme and then start editing that.
EDIT: I see that it does say how styles must be called differently than files. It doesn't show the full code on the documentation, you have to look at the default theme to get the full stylesheet code.
It doesn't say typography.css is mandatory for a theme either, but again it is in the default theme. I guess from now on, I will just duplicate the default theme and then start editing that.
Did you try using it without that line. I just think the file typography.css is needed not the line. The strange line is the html way to display a .css file, not really strange, because I use it all the time, in the old days, BC days (Before Concrete).
I am marking yours best answer so I can at least give you some karma for all your help.
You are probably right that all I needed to do was drop typography.css into my theme, but I want to also add that
should be included in the header (why not call them both to be safe, right?)
and
should apparently come just before the closing </head> tag. That's how it is in the default themes.
Might as well try to add as much info as possible since this thread is ridiculously long and maybe it will help someone someday.
You are probably right that all I needed to do was drop typography.css into my theme, but I want to also add that
should be included in the header (why not call them both to be safe, right?)
and
<?php Loader::element('header_required'); ?>
Might as well try to add as much info as possible since this thread is ridiculously long and maybe it will help someone someday.
You are correct you have to call them in the header section, to get the css to display. And I agree this is a pretty detail forum, and honestly surprised that no one found this out yet. And thanks for the karma, just glad I could help.