hyperlink

Silverstripe hash link rewriting putting unwanted slash in link

拥有回忆 提交于 2019-12-11 20:17:06
问题 Ok so I am developing a site in Silverstripe CMS that is using anchor links on one of it's pages. Thing is that in Silverstripe there is a rewrite going on that puts slashes before the hash in your links. So in the docs it explains that you can put this in your YAML to disable slashes before hashes: http://doc.silverstripe.org/en/developer_guides/templates/how_tos/disable_anchor_links/ Which I have done like so (YAML validates ok): _config/app.yml: SSViewer: rewrite_hash_links: false And then

Generate search links for comma separated words

一曲冷凌霜 提交于 2019-12-11 20:08:38
问题 as always, your help is very much valued <3 I have listings on my site that feature metadata keywords in the description. I'd like to make these appear like tags (our cms doesn't support tags hence this hack). It prints just the words separated with commas, like so: <div class="tags">abp, accredited building practitioners, calendar of events, upcoming events</div> Is javascript capable of finding any word in these divs and replacing them with a href that links to oursite.com/search?query

Hyperlink with Navigation in a Richtextbox

假如想象 提交于 2019-12-11 19:39:40
问题 How would I put a hyperlink with Navigation in a Richtextbox? Right now I have the following and it gives me this error: "XAMlParseException was unhandled" xaml <Page x:Class="SafeModeLiabilityAgreement" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="300" d

ASP.NET links won't redirect to the right page

孤街醉人 提交于 2019-12-11 19:39:22
问题 From time to time I encounter issues linking to page in Visual Studio when working with ASP.NET application. I create links to pages but they always redirect to the default one (Default.aspx) I trying various thing like deleting and recreate Rename the page Even If the page does not exist it still redirects to the defaults page. My Login.aspx page is the same folder as ForgotPassword.aspx I create links like this <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="ForgotPassword.aspx">

how add a hyperlink in pdf page to page using itextsharp

独自空忆成欢 提交于 2019-12-11 19:38:26
问题 I want to add or create a hyperlink in bottom of the PDF page and it will redirecting to another page by using itextsharp . and next thing is for example if i have 50 pages PDF file. add 3 pages to it. and in 50th page i want 2 hyperlinks at bottom of the page. one to go for 51st page and another one to for 52nd page. next thing is if i am click back button in 51st page and 52nd page also it will come to 50th page. 回答1: Using PdfAnnotation to create link PdfAnnotation annotation; annotation =

XPages: How to create link to download file from filesystem

ε祈祈猫儿з 提交于 2019-12-11 19:37:04
问题 i have a pdf file in a folder and i want to download it from an xpage. Normally this is just html like this: <a href='file://10.1.0.2/folder1/myfile.pdf'>click and download</a> I tested that it works using this line in a simple html file. In my Xpage I created a computed field (HTML display) and i added the < a > as value. I see the correct link on hover but on click nothing happens. What is the problem? Thnx 回答1: I have recently solved this kind of problem by writing a download "servlet" as

iOS 6 UITextView Link Detection Issue

独自空忆成欢 提交于 2019-12-11 19:08:00
问题 I am coming across a strange bug in my app, that I believe is an iOS 6 bug. I have a UITextView that contains some text that has some links and phone numbers. In my storyboard, I have Links & Phone Numbers checked under 'Detection' for my UITextView. In code I also do: _txtvFooter.editable = NO; _txtvFooter.dataDetectorTypes = UIDataDetectorTypeAll; The issue I am having is a strange one, but when I run my app onto my device (or sim) from Xcode, the UITextView detects all of the links fine,

Processing a String and replacing al URL's with working links via Java

☆樱花仙子☆ 提交于 2019-12-11 18:36:13
问题 How would I transform a text like the following or any other text containing an URL (http ftp etc) Go to this link http://www.google.com (ofc stack overflow already does this, on my website this is just plain text); Into this Go to this link <a href="http://www.google.com">www.google.com</a> I've come up with this method public String transformURLIntoLinks(String text){ String urlValidationRegex = "(https?|ftp)://(www\\d?|[a-zA-Z0-9]+)?.[a-zA-Z0-9-]+(\\:|.)([a-zA-Z0-9.]+|(\\d+)?)([/?:].*)?";

Insert a link to a db field mvc 5

放肆的年华 提交于 2019-12-11 18:28:42
问题 I have a field to my db which is external link and one that is a file. I need to display these fields to my view. I have this code where I call my data. @Html.DisplayFor(model => model.announcement_Link) and for the file @Html.DisplayFor(model => model.announcement_Uploaded_File) It brings the url and the file name . How can I make the 1st to be a link and the second to be linked to the file and to be downloaded? thank you 回答1: In Database : 1. For A Link: eg SQL : update AnnouncementTable

how to make search query results show up as links to their pages

送分小仙女□ 提交于 2019-12-11 18:11:10
问题 I am new to php as you can see :) how can i make the search query results show up as links to their pages. do i need to add to my database a 'links' column in my pages table? Then search_output them out? <?php error_reporting(E_ALL); ini_set('display_errors', '1'); $search_output = ""; if(isset($_POST['searchquery']) && $_POST['searchquery'] != ""){ $searchquery = preg_replace('#[^a-z 0-9?!]#i', '', $_POST['searchquery']); { $sqlCommand = "(SELECT id, page_title AS title FROM pages WHERE