From 1d380e90327678874965256ccc937452ea40b5b2 Mon Sep 17 00:00:00 2001 From: sas Date: Fri, 13 Sep 2024 07:09:26 -0400 Subject: [PATCH] Add the ability to edit the portlet content properties of the Bookmarks portlet. #2 --- .../Files/portlet/edit.bookmarks.get.xslt | 49 ++ .../Files/portlet/edit.bookmarks.xslt | 801 ++++++++++++++++++ .../Files/portlet/update.bookmarks.get.xslt | 51 ++ .../Files/portlet/update.bookmarks.xslt | 149 ++++ .../portlet/update.bookmarks.parameters.sas | 33 + 5 files changed, 1083 insertions(+) create mode 100644 sas/SASEnvironment/Files/portlet/edit.bookmarks.get.xslt create mode 100644 sas/SASEnvironment/Files/portlet/edit.bookmarks.xslt create mode 100644 sas/SASEnvironment/Files/portlet/update.bookmarks.get.xslt create mode 100644 sas/SASEnvironment/Files/portlet/update.bookmarks.xslt create mode 100644 sas/SASEnvironment/SASCode/Steps/portlet/update.bookmarks.parameters.sas diff --git a/sas/SASEnvironment/Files/portlet/edit.bookmarks.get.xslt b/sas/SASEnvironment/Files/portlet/edit.bookmarks.get.xslt new file mode 100644 index 0000000..9c2ddfd --- /dev/null +++ b/sas/SASEnvironment/Files/portlet/edit.bookmarks.get.xslt @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + SAS + 20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sas/SASEnvironment/Files/portlet/edit.bookmarks.xslt b/sas/SASEnvironment/Files/portlet/edit.bookmarks.xslt new file mode 100644 index 0000000..cf65246 --- /dev/null +++ b/sas/SASEnvironment/Files/portlet/edit.bookmarks.xslt @@ -0,0 +1,801 @@ + + + + + + + + + + + + + + + + + /resources_en.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +PSPortlet + + + + + + + + + + + + + + + + + +
+ + + +addItem.html + + +editItem.html + + + + + +
+ + + + + + + Portlet+omi:///PSPortlet;id= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+
+
  + + + + checked + on + + + + checked + on + + + off + + + + + + + + + 1 + + + 1 + + + 0 + + + +
+ + + + checked + on + + + + checked + on + + + off + + + + + + + + + + 1 + + + 1 + + + 0 + + + +
  +
//themes//images/1x1.gif
+    + + + +   + + + + + +
//themes//images/1x1.gif
+ +
+ + + + + + + + + +
+ +
+ + + + + + +addItemList: itemType= + + + + + + + WebApplication + Link + ContentChannel + + + + + /// + + + + + + + + + + + + + + + + + + + + + WebApplication + Link + ContentChannel + + + + + /// + + + + + + + + + + + + + +
+ diff --git a/sas/SASEnvironment/Files/portlet/update.bookmarks.get.xslt b/sas/SASEnvironment/Files/portlet/update.bookmarks.get.xslt new file mode 100644 index 0000000..82ee7e9 --- /dev/null +++ b/sas/SASEnvironment/Files/portlet/update.bookmarks.get.xslt @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + SAS + 20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sas/SASEnvironment/Files/portlet/update.bookmarks.xslt b/sas/SASEnvironment/Files/portlet/update.bookmarks.xslt new file mode 100644 index 0000000..c6e1488 --- /dev/null +++ b/sas/SASEnvironment/Files/portlet/update.bookmarks.xslt @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + +.$newShowDescription + + + + + + + + + + + + + + + true + false + + + + + + +.$newShowLocation + + + + + + + + + + + + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + show-description + 12 + + + + + + + + + + + + + + + + + + + + + + show-location + 12 + + + + + + + + + + + + + + SAS + 268435456 + + + + + + + + + + + + NOTE: No update required. + + + + + + diff --git a/sas/SASEnvironment/SASCode/Steps/portlet/update.bookmarks.parameters.sas b/sas/SASEnvironment/SASCode/Steps/portlet/update.bookmarks.parameters.sas new file mode 100644 index 0000000..03725ab --- /dev/null +++ b/sas/SASEnvironment/SASCode/Steps/portlet/update.bookmarks.parameters.sas @@ -0,0 +1,33 @@ +%macro genItems; + + %if (%symexist(PORTLETITEMSELECT_COUNT)) %then %do; + %if (&PORTLETITEMSELECT_COUNT. > 1) %then %do; + + %do i=1 %to &PORTLETITEMSELECT_COUNT; + put "%superq(PORTLETITEMSELECT&i.)"; + %end; + %end; + %else %do; + %if (&PORTLETITEMSELECT_COUNT. = 1) %then %do; + + put "%superq(PORTLETITEMSELECT)"; + %end; + %end; + %end; + +%mend; + + %if (%symexist(selectedShowDescription)) %then %do; + put "&selectedShowDescription."; + %end; + %if (%symexist(selectedShowLocation)) %then %do; + put "&selectedShowLocation."; + %end; + + + put ''; + + %genItems; + + put ''; +