Himalayan-Academy / Siva-Siva-App

Code Repository for the Siva Siva Mobile App
11 stars 3 forks source link

DevHAP: Two Pages in Conflict #318

Closed Brahmanathaswami closed 2 years ago

Brahmanathaswami commented 2 years ago

We have to the:

2021-10-23_05-38-02

We etcs do with function like:

function extractSecondaryContentModule pNode function extractHeroImagesModule pNode function extractSidebarModule pNode

Brahmanathaswami commented 2 years ago

There's is one link

`

<tab title="Hinduism Today">
        <item file_id="hinduism-today-current-issue" />
    </tab>
    <tab title="Educational Insights">
        <search media_type="book" file_id="_ei" />
        <search media_type="book" file_id="insight_" />

    </tab>
    <tab title="Scripture">
        <search media_type="book" tags="agama" />
        <!-- <search media_type="book" tags="scripture" /> -->
        <item file_id="tirukural" />
        <item file_id="tirumantiram" />
        <item file_id="weavers-wisdom" />
    </tab>

    <tab title="Other Languages">
        <search media_type="book" language="french"/>
        <search media_type="book" language="spanish"/>
        <search media_type="book" language="sanskrit"/>
        <search media_type="book" language="tamil"/>
        <search media_type="book" language="malay"/>
        <search media_type="book" language="portuguese"/>
        <search media_type="book" language="german"/>
        <search media_type="book" language="russian"/>
        <search media_type="book" language="spanish"/>
        <search media_type="book" language="hungarian"/>
        <search media_type="book" language="ukrainian"/>
    </tab>
    <tab title="Complete List">
        <search media_type="text" />
    </tab>
</module>
<module name="Links Module">
    <collection>
        <title>Other Popular Resources</title>
        <links>
            <link url="/view/12-beliefs-of-saivism-russian_ru">Our Book Listed Vertically</link>
            <link url="/readlearn/panchangam">Our Hindu Calendar</link>`

<?xml` version="1.0"?>

View all Books Browse Our Publications Other Popular Resources Our Book Listed Vertically Our Hindu Calendar Hindu Lexicon Dancing with Siva Living with Siva Merging with Siva Hindu Basics The Elephant-faced God Lemurian Scrolls Shum, The Language of Meditation Quick Links How to Install ebooks Become a Student Basics of Hinduism Learning to Meditate About the Monastery Hinduism Today Magazine Art and Photo Galleries Chanting and Songs Take a Virtual Tour How to Become a Monk Inspired Talks by Our Gurus In Other Languages For the Media `
Brahmanathaswami commented 2 years ago

it does NOT appear!

2021-10-23_05-59-55
soapdog commented 2 years ago

Sorry Swami, but this issue is badly written and in the wrong repository. This is not related to Siva Siva App. Why is it in this repo?

You haven't said what the problem is. Please, describe without placing code in the issue, what is the problem. Answer two questions:

  1. What should happen?
  2. What is actually happening?
soapdog commented 2 years ago

There is a missing module in a page. Waiting for Swami to tell me which page.

Brahmanathaswami commented 2 years ago

https://dev.himalayanacademy.com/readlearn/books

soapdog commented 2 years ago

Swami,

You are trying to add a links module to html/readandlearn/books/index.xml:

        <module name="Links Module">
            <collection>
                <title>Other Popular Resources</title>
                <links>
                    <link url="/view/12-beliefs-of-saivism-russian_ru">Our Book Listed Vertically</link>
                    <link url="/readlearn/panchangam">Our Hindu Calendar</link>
                    <link url="/view/lexicon">Hindu Lexicon</link>
                    <link url="/view/dancing-with-siva">Dancing with Siva</link>
                    <link url="/view/living-with-siva">Living with Siva</link>
                    <link url="/view/merging-with-siva">Merging with Siva</link>
                    <link url="/view/hindu-basics">Hindu Basics</link>
                    <link url="/view/loving-ganesha">The Elephant-faced God</link>
                    <link url="/view/lemurian-scrolls">Lemurian Scrolls</link>
                    <link url="/readlearn/shum">Shum, The Language of Meditation</link>
                </links>
            </collection>
            <collection>
                <title>Quick Links</title>
                <links>
                    <link url="/readlearn/books/epub-info">How to Install ebooks</link>
                    <link url="/livespiritually/become-student">Become a Student</link>
                    <link url="/readlearn/basics">Basics of Hinduism</link>
                    <link url="/livespiritually/meditation">Learning to Meditate</link>
                    <link url="/monastery/about">About the Monastery</link>
                    <link url="http://www.hinduismtoday.com/">Hinduism Today Magazine</link>
                    <link url="/looklisten/art-photos">Art and Photo Galleries</link>
                    <link url="/looklisten/chanting-songs">Chanting and Songs</link>
                    <link url="/view/iraivan_2012-02-03_main-slide-show">Take a Virtual Tour</link>
                    <link url="/livespiritually/monastic-life/how-to">How to Become a Monk</link>
                    <link url="/looklisten/gurus-talks">Inspired Talks by Our Gurus</link>
                    <link url="/readlearn/other-languages">In Other Languages</link>
                    <link url="/readlearn/for-the-media">For the Media</link>
                </links>
            </collection>
        </module>

What you haven't realised is that that page is rendered by sitewide/multiple-tabs.lc view which doesn't support a links module. The listed links in the bottom are hardcoded into the view itself:

    <div class="wrapper">

<section class="more-links">

                    <div class="column">

                        <h3 class="h3">Other Popular Resources</h3>

                        <ul>
                         <li><a href="/readlearn/panchangam">Our Hindu Calendar</a></li>
<li><a href="/view/lexicon">Hindu Lexicon</a></li>
<li><a href="/view/dancing-with-siva">Dancing with Siva</a></li>
<li><a href="/view/living-with-siva">Living with Siva</a></li>
<li><a href="/view/merging-with-siva">Merging with Siva</a></li>
<li><a href="/view/hindu-basics">Hindu Basics</a></li>
<li><a href="/view/loving-ganesha">The Elephant-faced God</a></li>
<li><a href="/view/lemurian-scrolls">Lemurian Scrolls</a></li>
<li><a href="/readlearn/shum">Shum, The Language of Meditation</a></li>

                        </ul>

                    </div>

                    <div class="column">

                        <h3 class="h3">Quick Links</h3>

                        <ul>
                        <li><a href="/readlearn/books/epub-info">How to Install ebooks</a></li>
<li><a href="/livespiritually/become-student">Become a Student</a></li>
<li><a href="/readlearn/basics">Basics of Hinduism</a></li>
<li><a href="/livespiritually/meditation">Learning to Meditate</a></li>
<li><a href="/monastery/about">About the Monastery</a></li>
<li><a href="http://www.hinduismtoday.com/">Hinduism Today Magazine</a></li>
<li><a href="/looklisten/art-photos">Art and Photo Galleries</a></li>
<li><a href="/looklisten/chanting-songs">Chanting and Songs</a></li>
<li><a href="/view/iraivan_2012-02-03_main-slide-show">Take a Virtual Tour</a></li>
<li><a href="/livespiritually/monastic-life/how-to">How to Become a Monk</a></li>
<li><a href="/looklisten/gurus-talks">Inspired Talks by Our Gurus</a></li>
<li><a href="/readlearn/other-languages">In Other Languages</a></li>
<li><a href="/readlearn/for-the-media">For the Media</a></li>

                        </ul>

                    </div>

                </section> <!-- end more links -->

            </div>  

So we need to either fix that on the view by adding that link, or alter that view to fetch data from the xml. Which one do you prefer?

Brahmanathaswami commented 2 years ago

I think "or alter that view to fetch data from the xml." because why? Because we want to see it in the xml.

Brahmanathaswami commented 2 years ago

I removed the links control in /html/readlearn/books/index.xml and at added : https://docs.google.com/spreadsheets/d/e/2PACX-1vTVdnPQzxgqYlwqvo5otU7IXfS8t7CEdG938Osb-vpWCjzsHffCtmw1Hsv8bZGKMTBtGVchl5qa7PKK/pubhtml.....

to: /application/ha/views/sitewide/multiple-tabs.lc

AND Both dev and HAP are the same