Implement 'View in browser' functionality with Newsletter - tridion

We are using SDL Tridion 2011. We want to implement "view in Browser" functionality with NewsLetter.
We don't find any proper way to achieve this functionality using Tridion Outbound Mailings.
Can someone please help us to implement this ?
For time being we are publishing a newsletter page and we are linking this page from Newsletter.
Please suggest best approach.

I think that is the general approach.
There's nothing out the box to link a published web page to a page Outbound Email uses for a mailing.
I think last time I did this we just used a field in the component to allow an editor to enter the full url to the web page, e.g. http://www.blah.com/subscription/email.html. I guess this could be replaced concatenating your site url to the page's PublishLocationUrl or using PageLink if you wanted a managed link.
They then published the web page first, then created a mailing using the same page.
Cheers

Related

How to publish Telegram instant view template for review

I created an Telegram IV template from my website. All checks are green and the template is working fine when published through:
https://t.me/iv?url=example.com
How can I publish my template for approval? so any URL from:
https://example.com
will be considered as Instant View in Telegram?
Instant View only support few domain for now, I think they will accept templates after contest.
I have the same problem. It looks like currently you need to publish your template through the contest (this page).
Mark as 'Tracked' in an editor as minimum 10 of articles/posts on your site. If each one is successful, do the follow.
Press button 'Submit template'.
As of 2021, it doesn't seem that Telegram is opening Instant View to more domains. I have tried to publish / submit a template plenty times, with no success.
On My templates page, clicking Submit Template, then Confirm, does nothing at all.
Publishing templates
If the Instant View page has been processed successfully, you'll see a
View in Telegram button in the top right corner – you can use it to
view the resulting page in-app.
For your own audience
Note that if you send the resulting t.me/iv?url=...&rhash=... link to
other Telegram users, they will see an Instant View page built using
your template (the rhash parameter in the link determines which
template is used to create the page). This means that, as a website
owner, you can create a template for your page and publish
t.me/iv?url=... links with the corresponding rhash to your Telegram
channel — and your subscribers will be able to view your articles in
the Instant View format right away.
For all Telegram users
If you'd like your template to become truly public and seen by all
users, regardless of the link they get, the template will need to be
approved by the Telegram team.
― https://instantview.telegram.org/#publishing-templates
The problem is that there is not documentation about how "the template will [...] be approved by the Telegram team" when there are no contests.
At the moment (2022) it seems it's not possible to submit an InstantView template for review. The support said to me it's only possible if there is an ongoing context.
This is strange, since in the interface says that it's possible to submit a template without participating to a context:
If you confirm, the web page tries to send the template in a context (see sendToContest):
POST https://instantview.telegram.org/api/my?hash=<omissis>
section=<domain>&method=sendToContest
The request fails without any human error. I think it's a bug in the Instant View submission platform, that does not work without a context.
Here a bug report related to "Cannot submit InstantView":
https://bugs.telegram.org/c/21634

Drupal webform location?

I am working on adding content to an existing site, and I can't figure out how to connect different web forms to different specific pages.
example: http://network.awcbn.com/3blindmicewindowcoverings
I need to replicate this page for other companies listed on the same site. But each webform will be on a different "basic page" and will be sent to a different email address.
I know virtually nothing about coding, and I'm wondering if this can just be done in the webform settings or drupal admin settings. without having to "pop open the hood" and mess with the code?
Basically I just don't know how to place a specific webform on a specific page. Does that make sense?
There's a great module for that called webform:
http://drupal.org/project/webform
When you create a node of type webform, there's a subtab under edit for configuring the fields, email messages, etc. Documentation is here:
http://drupal.org/documentation/modules/webform

Liferay's RSS portlet

My project requires Liferay's RSS portlet to read feeds from Liferay CMS. Could someone please guide me how to achieve this? I am using Liferay 6.0.6.
I scanned the internet but could not find relevant material.
Thanks in advance.
Go to Control Panel. Click on Web Content from the left. Click on Feed tab. Here you can create your feed. To quickly get started, just give a name and in the target friendly url textbox give the value of a liferay page in the same community. For example if you have a page called http://localhost:8080/web/guest/home, then give the target friendly url as /web/guest/home
Once the feed is created. Click on edit from Actions button in front of the feed that you just created. You will see it has generated a feed url for you. Use that feed url in the RSS portlet.

Best way to implement "Preview" functionality in asp .net Mvc3

I am using ASP.NET MVC. I would like to implement preview functionality to a form. i.e. I have a form with number of fields for example name, address etc.. Before the user submits the info, he/she can preview it as to how it will appear on the site.
Thanks
I don't know if this will work for you or not, but you could download the Orchard project and take a look at their preview implementation. I think you're going to have to save the "preview state" of the form as unpublished and then provide a way for the user to view the unpublished state of the form.

capture details from external web page

I'm wondering if it's possible to capture details from the web page that a user previously visited, if my page was not linked from it?
What I am trying to achieve is to allow users to my site to find a page they like while browsing the web, and then navigate to a page on my site via a bookmark, which will add the URL (and possibly some other details like the page title) to a form which they can then submit to my site to add the page to a list of favourites there.
I am not really sure where to start looking for this. I wondered if I could use http referrer, but think this may only work if there is a link to my page?
Alternatively, I am open to other suggestions as to how I could capture this data - a Firefox plugin? A page which users browse other sites in an iframe, with a skinny frame on top?
Thanks in advance for your suggestions.
Features like this are typically not allowed by browsers for security and privacy reasons. The IFrame would work, but this is a common hacking technique so it may be likely to break or be flagged in the future.
The firefox addon is the best solution, but requires users to install it manually.
Also, a bookmarklet could be used. While they are actively on the target page, the bookmarklet could send you the URL.
This example bookmarklet would create a tinyURL for the destination page. You could add it to your database or whatnot.
javascript:void(window.open('http://tinyurl.com/create.php?url='+document.location.href));
If some other site links to yours and the user clicked on that link which took them to your site you can access the "referrer" from the http headers. How you get a hold of the HTTP headers is language / framework specific. In .NET you would use the Request.UrlReferrer; other frameworks would probably handle it differently.
EDIT: After reading your question again, my guess would be what you're looking for is some sort of browser plugin. If I understand correctly, you want to give your clients the ability to bookmark a site, while they are on that site, which would somehow notify your site about the page they're viewing. The cleanest way to achieve this would be a browser plugin. You can also do FRAME tricks, like the Digg bar.

Resources