RE: Theme Migration

Olaf Kock, modified 6 Years ago. New Member Posts: 6 Join Date: 7/13/11 Recent Posts
Please let me thank you in advance for any direction, and feel free to let me know if more detail is needed as I am kind of new to posting. 

We are migrating from CE 6.1.2 GA3 to CE 7.0 GA7 and am having diffculty loading some custom js scripts into our theme.  I know it has been deprecated, but we are looking to leverage some of our existing velocity logic in an attempt to keep the project scale as minimal as possible.  So, I'm not sure if its a product of velocity support or something else.  I am including some snippets below in hopes i helps better explain the trouble.  Is there something more that is needed to be taken into account for the theme get loaded for portlet use?  Does OSGI change any behaviors?  Again, thank you for your time and I look forward to any suggested updates.

Thanks,
Jamie

===== portal-normal.vm =================
- path loads into the browser html source
- in order in file

    <!DOCTYPE html>
    
    #parse ($init)
    
    <html class="#language("lang.dir")" dir="#language("lang.dir")" lang="$w3c_language_id">
    
    <head>
        <title>$the_title - $company_name</title> ....
                  #js ("$javascript_folder/jquery.isotope.min.js")
                  #js ("$javascript_folder/jquery.qtip.js")
                  #js ("$javascript_folder/freeform.js") ....


==== freeform.js ==========================
- alert is not triggered

$(document).ready(function() {
    alert("freeform ready");

==== browser console output  ================
TypeError: $entity_container.isotope is not a function[Learn More] entity.js:8:5
TypeError: $(...).qtip is not a function[Learn More]
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hey James, 

I'll try to help out, though I haven't used velocity since 6.1 to be honest. Right now are you getting 404s for the JS files? What do you see in the inspector resources tabs? and are you able to grab the "generated js urls" from the source?