Commit Graph
353 Commits
Author SHA1 Message Date
Jacques Le Roux 2bfcc945e3 A patch from Martin Kreidenweis "Adding content in CMS using add long text (right mouse click) doesn't work" (https://issues.apache.org/jira/browse/OFBIZ-4079) - OFBIZ-4079
Fixes some bugs in CMS introduced in svn r1036195 when migrating from dojo to jQuery:
* reverted accidental logic change in callDocument() that broke the "new ..." context menu items
* making elRTE "save" toolbar button work: same behavior as the regular "Save" button
* using regular form submit instead of ajax for new content for now
  o ajaxSubmitForm() can't handle new content, it won't reload the form because it doesn't know the new contentId
    + some controller changes would probably be necessary to make that work (return new contentId as JSON)
  o nav tree is not updated with ajax submit currently
* now always creating editor if corresponsing html element exists
  o editor was not initialized when WebSiteCMSContent screen was loaded by non-ajax call


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058197 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 15:39:29 +00:00
Jacques Le Roux 48eea97f2e A patch from Martin Kreidenweis "Links to Path Alias and Meta Tags in CMS don't work any more" (https://issues.apache.org/jira/browse/OFBIZ-4108) - OFBIZ-4108
* Go to https://demo-trunk.ofbiz.apache.org/content/control/WebSiteCms?webSiteId=WebStore
* Select some content, e.g. "Store Policies"
* Try to click the "Path Alias" or "Meta Tags" links at the top. They cause a JavaScript error: "destroyEditor is not defined"

This patch removes calls to non-existing destroyEditor() javascript function, fixes the url to the path alias, and adds the missing screenlets to the path alias and meta tags screens 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057775 13f79535-47bb-0310-9956-ffa450edef68
2011-01-11 18:04:19 +00:00
Jacques Le Roux 461278703f Resolves "The online help navigation panel is too narrow" (https://issues.apache.org/jira/browse/OFBIZ-4066) - OFBIZ-4066
But in Flat Grey, even when you had the content of the bluelight/help.css in flatgrey/help.css...

I have set the default lookup_popup2 size to width=900 height=700, now that anyway OFBiz is designed to be used with at least a 1024*768 screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056986 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 17:55:04 +00:00
Jacques Le Roux 0a72fe8793 3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki

Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.

* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels

I simply fixed some typos. I did not test all cases but did a good review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056497 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:40:31 +00:00
Erwan de Ferrieres eaf7180711 Migrating from lucene 2.4.1 to lucene 3.0.3
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050811 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 11:12:53 +00:00
Jacques Le Roux 24fe5ff37e Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Bruno Busco ac92eeffd0 Enabled column sorting in Survey list, WebSite list and DataResource list forms
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:19:10 +00:00
Hans Bakker 37cac8d112 update blog info did not work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022517 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 13:19:45 +00:00
Scott Gray 7521b01612 Content search execution code was incorrectly located within an if block, preventing the search from executing if no features were selected. Resolves OFBIZ-3927
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996057 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:34:09 +00:00
Scott Gray a8753bd854 Corrected usage of Lucene API to be compatible with our current version (2.4.1), partially resolves OFBIZ-3927
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996056 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:34:02 +00:00
Erwan de Ferrieres cd78a16fba OFBIZ-3647 Create dataResource from content -- A patch from Nicolas Malin -- https://issues.apache.org/jira/browse/OFBIZ-3647
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993395 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 15:30:21 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Jacques Le Roux 9ef845d0ad A patch from BJ Freeman "complete web.xml for error reporting" (https://issues.apache.org/jira/browse/OFBIZ-3820) - OFBIZ-3820
BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.

JLR: This will maybe help to better understand some errors on demo servers, and can't hurt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954135 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 20:47:08 +00:00
Jacques Le Roux 47b0020afe A patch from Ankit Jain, removes useless redundant <request-map uri="authview">, it's now in the common controller(https://issues.apache.org/jira/browse/OFBIZ-3469) - OFBIZ-3469
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949142 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 10:30:46 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Erwan de Ferrieres bd82937abb XHTML validation errors round 2++ (content) OFBIZ-3755 https://issues.apache.org/jira/browse/OFBIZ-3755
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946322 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 18:15:46 +00:00
Jacques Le Roux 2e47e20efe This file was open in Eclipse and not saved for r946073/946075
(presentation="window")


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946080 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 08:05:00 +00:00
Jacques Le Roux fda988d301 Closes "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693) - OFBIZ-3693
This commit removes all remaining <presentation="window">

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946073 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 07:36:02 +00:00
Jacques Le Roux 62976e36fb We still have a problem with the find button in recursive cases (ie LookupWorkEffort and LookupContent).
It's not related to previous patches committed but an issue which is remaining and we have to face now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944647 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 14:13:03 +00:00
Jacques Le Roux 578662ae4c Now that we have fixed the layered lookup inside layered lookup issue and the recursive call case we can get rid of all the useless remaining presentation="window".
I keep the example and beware LookupTimeDuration is a special case

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944623 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 12:13:00 +00:00
Bruno Busco 968858b79a A patch from Blas Rodriguez Somoza
OFBIZ-3730 - XHTML validation errors round 2+ (content)
https://issues.apache.org/jira/browse/OFBIZ-3730
addSubSite.ftl
script without type attribute

CMSContentEdit.ftl
Attributes without value

CMSSites.ftl
Attributes without value

UserPermissions.ftl
Attributes without value

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939788 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 19:30:17 +00:00
Jacques Le Roux e714f96c66 Closes "Replace popup lookups by layer lookups" (https://issues.apache.org/jira/browse/OFBIZ-3442) - OFBIZ-3442
Not all cases have been resolved but this patch takes this into account and should not introduce any not known issues. These issues are identified at "Layer popup umbrella main task" (https://issues.apache.org/jira/browse/OFBIZ-3445). They will be resolved later and are actually bugs so will be committed later when fixed. They are
* "Allow to open a layer lookup from a layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3446) and its specific case "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693)
* "The minimize/enlarge buttons (+ -) blocks the layer" (https://issues.apache.org/jira/browse/OFBIZ-3692)
* "When you get disconnected (time out) from a layered lookup, you then get afterward ugly screens" (https://issues.apache.org/jira/browse/OFBIZ-3450)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937852 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 18:49:01 +00:00
Bruno Busco 28e67b0349 A patch from Blas Rodriguez Somoza
OFBIZ-3688 - XHTML validation errors round 2 (content)
https://issues.apache.org/jira/browse/OFBIZ-3688
XHTML validation errors

    * Unclosed tags
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

ContentTreeLookupList.ftl
Line 20: tr with attribute colspan

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935263 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:02:54 +00:00
Jacques Le Roux 3c9ed4efd1 Fix a bug reported by Blas Rodriguez Somoza at https://issues.apache.org/jira/browse/OFBIZ-3673 "Error screen in Content Manager->CMS->Create new (Ofbiz Demo)" - OFBIZ-3673
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933258 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 14:52:00 +00:00
Jacques Le Roux 0fd584149d Fixes 2 wrong arguments names passed to htmlTemplate.lookupField macro. There are no others.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933145 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:47:24 +00:00
Jacques Le Roux 671756c121 This one was missing in r931854 ("Using Widgets html form templates in FTL file"). It's one of the 2 cases where the hidden field is shared (note the FIXME)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932005 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 16:58:42 +00:00
Jacques Le Roux c7b353d3e8 Closes "Using Widgets html form templates in FTL files" (https://issues.apache.org/jira/browse/OFBIZ-3541) - OFBIZ-3541
This concerns the lookups which are now rendered the same in ftl files and widget forms

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931854 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 10:19:38 +00:00
Bruno Busco 8c3b694494 A patch from Blas Rodriguez Somoza
OFBIZ-3611 - XHTML validation errors (content)
XHTML validation errors
- Unclosed INPUT
- attributes without values (checked, selected, disabled, etc)
- attribute values without "
- Uppercase tags or attributes.
- Unencoded ampersands in urls.

Other errors:

AdminSearch.ftl (this template has several markup errors and it should be reviewed)
Wrong markup at line 32. Duplicated TR
<tr>
Wrong markup at line 49. Table directly inside tr, needs td. Also wrong attribute name wdith should be width.
<table border="0" wdith="100%">
Wrong markup at line 112. Unclosed previous table and td
<td width="20%" align="right">

CMSSites.ftl
Wrong attribute name at lines 42,66, 154, 211. mode should be method
mode="POST"
Lacks needed type attribute at lines 19, 265.
<SCRIPT language="javascript">

UserPermissions.ftl
Wrong attribute name at lines 60, 81. mode should be method
mode="POST"
Lacks needed type attribute at lines 19 .
<SCRIPT language="javascript">
Wrong markup at lines 115 to 120. Those closing tags have no matching open tags.
</td>
</tr>
</table>
</td>
</tr>
</table>

CMSMenus.xml
Duplicated id value "dflt" at lines 32,38,43
<link id="dflt"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929257 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 20:28:48 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Scott Gray a830f3f436 Removed all uses of deprecated method ModelEntity.getField(int)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912243 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 22:53:09 +00:00
Ashish Vijaywargiya 62a47436c3 Applied patch from jira issue - OFBIZ-3487 - Improvement on CMS component.
1.  Adding sequenceNum field on ContentPurpose entity.
2. Adding ContentAssocAndContentPurpose view entity.
3. Fixed NPE issue on WebSiteCMSContent.ftl file.
4. Created ContentPurposeType data for "LANDING_PAGE_IMAGE".

Thanks Amit & Vivek for the contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911774 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 10:27:10 +00:00
Scott Gray 78b784e80e Convert all uses of json event types to chained requests with the common json event at the end.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Marco Risaliti d3c28b6b72 Commented some unused requests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891018 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 21:51:44 +00:00
Hans Bakker dfaf58c0ff correct some content blog errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890253 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 09:51:41 +00:00
Ashish Vijaywargiya 0507a954f6 Part of OFBIZ-3320 - Now you will see "Find" button on Lookup forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889088 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 04:50:29 +00:00
Jacques Le Roux 061b06acf1 Please gents, no words sentences, thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829875 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 17:41:41 +00:00
Bruno Busco 1e39c7bd92 Part of OFBIZ-3067 - Menus and form widget files location
Content component
Moved menus from webapp to widget folder


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828872 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:18:00 +00:00
Bruno Busco 40a72014a1 A patch from Patrick Antivackis "Addind Error Pages (404 - 410) possibilities for the Content app" (https://issues.apache.org/jira/browse/OFBIZ-3022) - OFBIZ-3022
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826205 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 09:12:39 +00:00
Bruno Busco 19463b758e Fixed markup for correct content list rendering
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821498 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 10:19:45 +00:00
Jacques Le Roux fe6a959a74 A patch from Rohit Jain "In Content Manager component Remove Survey question link of Edit survey question page is showing error." (https://issues.apache.org/jira/browse/OFBIZ-2993) - OFBIZ-2993
Part of Main task for securing URLs in Freemarker templates files  (OFBIZ-2330)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821263 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 07:48:11 +00:00
Scott Gray e419be8e1f Remove usage of a deprecated DataResourceWorker method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821250 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 05:16:30 +00:00
Scott Gray 13d77a190f Remove usage of deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821248 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 05:06:54 +00:00
Scott Gray 9d6f469d3f Removed use of a deprecated DataResourceWorker method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821244 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 04:57:00 +00:00
Scott Gray a46440d697 spaces for tabs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818327 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 00:38:31 +00:00
Hans Bakker 5bced52dc0 added a view button the the document list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816488 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 06:51:30 +00:00
Hans Bakker 9161b85ce2 spaces for tabs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816036 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 03:22:32 +00:00
Jacques Le Roux ef54998974 Fix a bug reported by James McGill on user ML :
content/control/EditSurveyResponse puts escaped HTML on the page instead of
the rendered survey.
applications/content/webapp/content/survey/EditSurveyResponse.ftl  has
${surveyString}    but
that apparently escapes the page.   ${surveyString?html} just adds another
level of escaping, and
I couldn't see how to "unescape" from here.
It looks to me like there really should be a call to surveyWrapper.render()
or something like that --
or is it the intended behavior to show the  HTML output instead of the
rendered survey?


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815687 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 09:28:30 +00:00
Hans Bakker d34dbebce8 all upload content screens (hopefully we did not forget any) can now also select an existing contentId which can be selected from a navigation tree. Added also the possibility when a file is uploaded to put it at a particular leave in the tree. Programmed by my employee Berm
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815651 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 07:48:51 +00:00
Jacques Le Roux b7a941d4f6 Revert r813307 on Adrian's request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813893 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 16:02:01 +00:00
Jacques Le Roux a7430a2fc2 A modified patch from Erwan de FERRIERES '"Automatic" sortable table headers" (https://issues.apache.org/jira/browse/OFBIZ-2921) - OFBIZ-2921
I was planning to wait longer, but I can't wait more. I have added a lot of small trivial changes in this patch and they are blocking me to go further on other issues...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813307 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:41:19 +00:00