Closed (fixed)
Project:
Sweaver
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2010 at 14:34 UTC
Updated:
22 Sep 2010 at 14:54 UTC
Example:
I just want the user to modify the #wrapper and #header selectors. These selectors/elements would explicitly be shown to the user while making edits, maybe in a new column or under the "other" column, so that they know or it is suggested they only edit those selectors.
Comments
Comment #1
swentel commentedThat's our plan too - will become a setting in the back-end where it will be possible to only use the known selectors or not. Is coming soon.
Comment #2
a_c_m commentedGreat - looks very cool and an impressive proof of concept / beta.
Looking forward to features like this that will let us lock down the functionality a little. Great work!
Comment #3
jyve commentedAs Swentel mentioned, this should be coming very soon.
In the meantime it is possible to tag selectors as 'highlight', which means that if you for example set '#header' to highlight, and someone clicks on a link in the header region, the default selection would be 'a link in the header region'.
Comment #4
jyve commentedWell well, we just did a test, and it appears that this is already possible :)
Sweaver only displays the selectors that are defined in the backend, so go to 'Site configuration > Sweaver > Selectors' and disable the default ones. Then add your own selectors, and you should be fine!
Comment #5
swentel commentedIndeed confirmed - you have total control about the selectors sent to the editor.
Comment #6
keesee commentedI just tested this feature and it doesn't seem to be saving the added selectors. Not sure if its an issue with my install specifically. on the admin/settings/sweaver edit page, it saves items you type into the "exclude paths" setting but anything added to the exclude selectors arent being saved.
love the concept. great mod.
--
J.
Comment #7
stephthegeek commentedI'm not clear on exactly how to use this. I disabled the default selectors and added "div.block" to attempt to restrict selection only to divs with the block class. But when going back to the editor, I then seem to be unable to select anything. I click around blocks everywhere I can and nothing will select. It may also be worth pointing out that even with all selectors enabled, I can't seem to get it to select div.block, only the .inner ones (this is in Fusion Starter).
Comment #8
jyve commented@CropX, bug confirmed and fixed in the dev version.
@stephthegeek, just tried what you mentioned with the div.block and there were no issues here. Maybe you should try to use the latest dev version as some more changes have been done.
Comment #9
keesee commented@jyve, Great thanks. I'll update and continue testing.
Comment #10
swentel commented