Getting started with galleries


hi all!

 

i'm new lightroom sdk business, i'm willing devote several weeks learning how automate have done manually in half hour. in case, decided wanted exported galleries have facebook button , google analytics tracking code.

 

i added code call things header , footer, , added panel specify eventual url of live index page, , went well. modified large image page allow specific image, prepending url filename so:

 

div class="fb-like" data-href="$model.metadata.urlforfacebook.value/content/<%= image.exportfilename %>_large.html"

 

which worked, sorta. you'll notice used image (is object correct term here? seems behave object, i'll use object terminology), on main grid.html doesn't exist. able work around creating second footer file large image page. decided wanted have image description description gets sent facebook, , things got complicated.

 

in head, should able test if object instantiated (or exists), , have (og meta tags how facebook gets info)

 

<% if not exists image.metadata.description %>

  <meta property="og:title" content="$model.metadata.sitetitle.value" />

<% else %>

  <meta property="og:title" content="$model.metadata.sitetitle.value" />

  <meta property="og:description" content="$image.metadata.description" />

<% end %>

 

can offer me guidance on how this, or should create multiple header , footer files?

 

related - dollar sign doing in these, , 'image' need one? i'm not totally clear on what's happening there (as can tell, i'm programmer knows enough need backups!)

 

thanks can offer!

hi odoketa.

did ever resolve problem?

i try same sort of thing you've attempted wondered how far you'd got.

 

ive had trouble implementing unique 'like' button every image far i'm going through 3rd party route (addthis) , requires image url within header. not had chance prove if necessary. sounds (from comment) might not be.

 

can ask why expecting image object exist page contains multiple images? (such grid page).

 

i'm working on social buttons in web-templates @ moment maybe can compare notes each other out?

regards

rob



More discussions in Lightroom SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support