Hi,
I modified the template branding to change parameter queryStr to query (
Templates > templating-kit > templates > global > branding );
I, modified the paragraph to change model class from info.magnolia.module.
templatingkit.search.SearchResultModel to info.magnolia.solr.samples.
SearchParagraphModel ( Paragraph Definition > features > stkSearchResult ),
and after "Activete Changes", I got this error when I execute a search from
demo-project. I am sure I'm missing something, but I don't know I to do it.
This is the error:
FreeMarker template error!
Expression pager.position is undefined on line 4, column 32 in templating-
kit/paragraphs/macros/pagination.ftl.
The problematic instruction:
----------
==> if pager?has_content && (pager.position?starts_with(position)
|| pager.position?starts_with("both")) [on line 4, column 5 in templating-
kit/paragraphs/macros/pagination.ftl]
in user-directive pagination [on line 42, column 1 in templating-
kit/paragraphs/features/searchResult.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression pager.position is
undefined on line 4, column 32 in templating-kit/paragraphs/macros/pagination.
ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
......
My goal is to use module-solr with Standard Template Kit.
Thanks.
>----Messaggio originale----
>Da: [email protected]
>Data: 27/06/2011 14.04
>A: "Magnolia User-List"<[email protected]>
>Ogg: Re: R: Re: [magnolia-user] magnolia solr integration + standard
template kit
>
>
>Just in case you edited the template script "online", remember to tick the
"enable template" checkbox, so that the template you changed in the repository
is served. Else, can you paste the error stacktrace on pastebin.org?
>
>On Jun 27, 2011, at 12:45 PM, [email protected] wrote:
>
>>
>> I tried to modify stkSearchResult paragraph. I changed the class model
with
>> solr search model, but I think it is not enough.
>>
>> I'm very new with Standard Template Kit, and I didn't find anything to
>> integrate module solr, with the Standard Template Kit that is installed
in
>> magnolia 4.4.4
>>
>> Thanks.
>>
>>> ----Messaggio originale----
>>> Da: [email protected]
>>> Data: 27/06/2011 11.22
>>> A: "Magnolia User-List"<[email protected]>
>>> Ogg: Re: [magnolia-user] magnolia solr integration + standard template
kit
>>>
>>>
>>> Hi,
>>>
>>> what kind of errors do you have?
>>>
>>> Federico
>>>
>>>
>>> On Jun 27, 2011, at 10:06 AM, [email protected] wrote:
>>>
>>>> Hello,
>>>> I installed in magnolia 4.4.4 the module apache solr integration and it
>> works fine.
>>>>
>>>> I'd like to know if someone use this module with stk template instead
jsp
>> page that I found inside the module example.
>>>>
>>>> I tried to use the model class of solr sample with stk template but I
have
>> some error.
>>>>
>>>> Thanks
>>>
>>>
>>>
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <[email protected]>
>>> ----------------------------------------------------------------
>>>
>>>
>>
>>
>>
>>
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>>
>
>
>
>----------------------------------------------------------------
>For list details see
>http://www.magnolia-cms.com/community/mailing-lists.html
>To unsubscribe, E-mail to: <[email protected]>
>----------------------------------------------------------------
>
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------