You should be able to separate the site from the core, but may have a
problem doing so; your could probably tweak the code to make things work.
Have a look in your site at config/_serverSpecificVar.cfm. This is where
the communication b/t core and site get set up. The question is: can you
assume that the the appropriate variables have been used throughout the
entire core?
Separating the Core (farcry_core)
The infers that farcry_core must be in a subdirectory under the CF mapping
/farcry. The case is the same in the fourQ code: it often references
farcry.fourQ. So the core and fourq must live under /farcry
Separating the Website (farcry_website)
If you start separating the install from the core, you need to investigate
how they are tied together. They will be coupled via the webskin (directory
paths) as well as at the component level (the custompackagepath).
Webskins
All types are rendered via the webskin, whose contents are normally located
in /farcry/farcry_website/webskin. The core references this via
#application.path.webskin#. This is set to
application.path.webskin = application.path.project & "/webskin";
So it looks like this would probably work.
Custom Components
If you build your own types (components) (or extend existing ones), then you
will have to deal with how components cross back to access the core usually,
this is done via extends="farcry.farcry_core.packages.types.types". But
also keep in mind that the farcry_core needs to be able to find and
enumerate your custom components.
Conclusion
It should work. However, I have multiple sites running (10+) in the default
configuration, and have no reason to deviate from that. Never change a
running system. Do you have a very compelling reason for modifying the
intended installation? What if that becomes a constraint in the future?
Note to Daemon--fourQ is great for standalone (non-FC) projects. Is there
any way of eliminating the need for the /farcry mapping, so that I can place
it in any directory I want (e.g. components).
Scott Talsma
CTO
echo.eleven
404.845.3458
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sebastian Frost
Sent: Friday, November 18, 2005 8:08 AM
To: [email protected]
Subject: [farcry-dev] Re: Custom login and hires images image
Importance: Low
Hi,
first of all: Thanks for the latest replies. This list is pleasing fast...
Now one more question: We'll setting up a new webserver and discussing how
to set up folders, partions etc.. I wondered if it's possible (and
advisable) to install farcry websites in another directory than the one
where the core lives? I assume I can use the "install only DB" feature for a
task like this, but I tried so and failed ().
Any ideas?
Sebastian
Niedecken Medien | Wandsbeker Allee 1 | 22041 Hamburg Tel +49 (40) 236 106
13 | Fax +49 (40) 2236 106 15 [EMAIL PROTECTED] |
http://www.niedecken-medien.de
Am 15.11.2005 um 22:25 schrieb [email protected]:
> Scott Talsma-2 wrote:
> > 2. Would it be possible to create a policy that allows a user
> just to
> > see / modify a news based on the category of the news?
>
> Maybe someone else has a better take on this. My approach seems like
> a lot of work w/ relatively little payoff.
> 1) Extend dmProfile, or dmGroup (depending on if you want to assign
> permissions at a user level or at a group level). You want to be able
> to save the categories that the user/group is allowed to edit. When
> editing, display the list of categories, so that an admin can select
> from them.
>
> 2) Extend dmNews. You want to check to see if the user has
> permissions to make the edit before you display the edit form. An
> issue you will have to deal with is creating new items which initially
> have no category. Who can do it? Do categories get assigned by
> default based on user rights? What if a user can edit multiple
> categories?
>
>
> Scott's approach would probably work.
>
> An easier one might be to create a new news listing page such that
> only news of a particular category is listed by default. And then
> provide that user access to the new listing page rather than the
> standard one.
>
> Restricting the output of a specific typeadmin screen is relatively
> straightforward -- one of the attributes you can pass in is a query,
> so you preprep your query of categorised news and then pass it into
> the typeadmin.
>
> Although its worth noting if they edit the news article and change the
> category to something they are not allowed to edit, then once they hit
> sve they won;t have access to that news item anymore. You could
> always extend the dmnews type to remove the category step but then
> that gets a bit more complicated.
>
> Anyway I hope either Scott or my suggestions get you started,
>
> -- geoff
> http://www.daemon.com.au/
>
> Sent from the FarCry - Dev forum at Nabble.com.
> <Attach0.html>