From indradg at gmail.com Fri Aug 8 06:14:57 2014
From: indradg at gmail.com (Indranil Das Gupta)
Date: Fri, 8 Aug 2014 04:14:57 +0000
Subject: [Koha-docs] [PATCH] Bug 12735: Koha as a CMS manual entry does not
reflect bootstrap template usage
Message-ID: <1407471297-32229-1-git-send-email-indradg@gmail.com>
Patch adds bootstrap template instructions to the 3.14 manual entry kohacms.html
---
en/manual.xml | 82 ++++++++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 64 insertions(+), 18 deletions(-)
diff --git a/en/manual.xml b/en/manual.xml
index 17a61a9..01f4147 100644
--- a/en/manual.xml
+++ b/en/manual.xml
@@ -44955,7 +44955,7 @@ Items :
- At approximately line 36 change this code:
+ At approximately line 33 change this code:
template_name => "opac-main.tt",
@@ -44967,10 +44967,12 @@ Items :
- At approximately line 54 after this code:
+ At approximately line 62 after this code:
$template->param(
koha_news => $all_koha_news,
- koha_news_count => $koha_news_count
+ koha_news_count => $koha_news_count,
+ display_daily_quote => C4::Context->preference('QuoteOfTheDay'),
+ daily_quote => $quote,
);
@@ -44984,23 +44986,67 @@ Items :
Note pages.pl file must have Webserver user execution permissions, you can use
chmod command if you are
actually logged in as such user:
- $chmod 711 pages.pl
-
-
-
- Copy /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-main.tt to
- /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/pages.tt
-
-
- Edit /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/pages.tt
-
-
- At approximately line 38, change this:
- [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock" class="container">[% OpacMainUserBlock %]</div>[% END %]
- To this:
- [% IF ( page_test ) %]<div id="opacmainuserblock" class="container">[% page_test %]</div>[% END %]
+ $chmod 755 pages.pl
+
+ Editing the pages template
+ The file to create / edit for the pages template will depend on your opacthemes system preference setting i.e. bootstrap or prog (deprecated) or ccsr (deprecated)
+
+ Editing 'bootstrap' theme template (current)
+
+
+ Copy /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules/opac-main.tt to /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules/pages.tt
+
+
+ Edit /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules/pages.tt
+
+
+ At approximately line 61, change this:
+ [% IF ( OpacMainUserBlock ) %][% OpacMainUserBlock %]
[% END %]
+
+
+ To this:
+ [% IF ( page_test ) %][% page_test %]
[% END %]
+
+
+ Remark: You may wish to disable your News block of these CMS style pages e.g. when you do not want it displayed on the CMS style pages or where the News block is long enough that it actually makes the 'page_test' include scroll outside the default viewport dimensions. In that case, remove the following code from your pages.tt template.
+
+ [% IF ( koha_news_count ) %]
+
+
+ [% FOREACH koha_new IN koha_news %]
+ [% koha_new.title %] |
+ [% koha_new.new %]
+ |
+ [% END %]
+
+
+ [% END %]
+
+
+
+
+ Editing 'prog' theme template (deprecated)
+
+
+ Copy /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-main.tt to /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/pages.tt
+
+
+ Edit /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/pages.tt
+
+
+ At approximately line 40, change this:
+ [% OpacMainUserBlock %]
+
+
+ To this:
+ [% page_test %]
+
+
+
+
+
In the browser go to Home > Administration > System Preferences > Local Use and add
a New Preference called "page_test"
--
1.8.1.2
From indradg at gmail.com Fri Aug 8 06:31:39 2014
From: indradg at gmail.com (Indranil Das Gupta)
Date: Fri, 8 Aug 2014 04:31:39 +0000
Subject: [Koha-docs] [PATCH 2/2] Bug 12735: Koha as a CMS manual entry does
not reflect bootstrap template usage.
Message-ID: <1407472299-31830-1-git-send-email-indradg@gmail.com>
Patch adds bootstrap template instructions to the 3.14 manual entry kohacms.html.
---
en/manual.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/en/manual.xml b/en/manual.xml
index 01f4147..4551d4b 100644
--- a/en/manual.xml
+++ b/en/manual.xml
@@ -44957,13 +44957,13 @@ Items :
At approximately line 33 change this code:
- template_name => "opac-main.tt",
+ template_name => "opac-main.tmpl",
To this code:
- template_name => "pages.tt",
+ template_name => "pages.tmpl",
--
1.8.1.2
From nengard at gmail.com Tue Aug 12 20:03:44 2014
From: nengard at gmail.com (Nicole Engard)
Date: Tue, 12 Aug 2014 13:03:44 -0500
Subject: [Koha-docs] [PATCH 2/2] Bug 12735: Koha as a CMS manual entry
does not reflect bootstrap template usage.
In-Reply-To: <1407472299-31830-1-git-send-email-indradg@gmail.com>
References: <1407472299-31830-1-git-send-email-indradg@gmail.com>
Message-ID:
This and the other patch have been pushed to the manual. Thanks!!
Nicole
On Thu, Aug 7, 2014 at 11:31 PM, Indranil Das Gupta
wrote:
> Patch adds bootstrap template instructions to the 3.14 manual entry
> kohacms.html.
> ---
> en/manual.xml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/en/manual.xml b/en/manual.xml
> index 01f4147..4551d4b 100644
> --- a/en/manual.xml
> +++ b/en/manual.xml
> @@ -44957,13 +44957,13 @@ Items :
>
> At approximately line 33 change this code:
>
> - template_name => "opac-main.tt
> ",
> + template_name =>
> "opac-main.tmpl",
>
>
>
> To this code:
>
> - template_name => "pages.tt",
> + template_name => "pages.tmpl",
>
>
>
>
> --
> 1.8.1.2
>
> _______________________________________________
> Koha-docs mailing list
> Koha-docs at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-docs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From nengard at gmail.com Wed Aug 20 16:16:28 2014
From: nengard at gmail.com (Nicole Engard)
Date: Wed, 20 Aug 2014 09:16:28 -0500
Subject: [Koha-docs] Koha manual branched
Message-ID:
I have branched the Koha manual so that master is now the working manual
for 3.18 and 3.16 has it's own branch (
http://git.koha-community.org/gitweb/?p=kohadocs.git;a=summary). I believe
that the translators will have to do some work on
http://es.koha-community.org/manual/ to adjust accordingly and generate the
PDFs properly for these 2 branches. Let me know when that's done and I'll
update the manual links on the Koha site.
Thanks
Nicole
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bgkriegel at gmail.com Wed Aug 20 16:41:39 2014
From: bgkriegel at gmail.com (Bernardo Gonzalez Kriegel)
Date: Wed, 20 Aug 2014 11:41:39 -0300
Subject: [Koha-docs] Koha manual branched
In-Reply-To:
References:
Message-ID:
Hi Nicole,
new files ready
master/3.18
HTML http://es.koha-community.org/manual/master/en/
PDF http://es.koha-community.org/manual/master/en/manual.pdf
3.16
HTML http://es.koha-community.org/manual/3.16/en/
PDF http://es.koha-community.org/manual/3.16/en/manual.pdf
Bernardo
--
Bernardo Gonzalez Kriegel
bgkriegel at gmail.com
On Wed, Aug 20, 2014 at 11:16 AM, Nicole Engard wrote:
> I have branched the Koha manual so that master is now the working manual
> for 3.18 and 3.16 has it's own branch (
> http://git.koha-community.org/gitweb/?p=kohadocs.git;a=summary). I
> believe that the translators will have to do some work on
> http://es.koha-community.org/manual/ to adjust accordingly and generate
> the PDFs properly for these 2 branches. Let me know when that's done and
> I'll update the manual links on the Koha site.
>
> Thanks
> Nicole
>
> _______________________________________________
> Koha-docs mailing list
> Koha-docs at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-docs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From nengard at gmail.com Wed Aug 20 16:49:58 2014
From: nengard at gmail.com (Nicole Engard)
Date: Wed, 20 Aug 2014 09:49:58 -0500
Subject: [Koha-docs] Koha manual branched
In-Reply-To:
References:
Message-ID:
Official Koha pages updated: http://koha-community.org/documentation/
Thanks,
Nicole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: